Skip to content

Commit

Permalink
Add 'ExistingTab' option for openFile
Browse files Browse the repository at this point in the history
  • Loading branch information
bryphe committed Feb 27, 2018
1 parent 52d15ce commit 1271273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oni-api",
"version": "0.0.36",
"version": "0.0.37",
"description": "Oni's API layer",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ export enum FileOpenMode {

// Open file in a new tab, in the active editor
NewTab,

// Open file in existing tab. Replaces the currently
// active file in the tab.
ExistingTab,
}

export interface FileOpenOptions {
Expand Down

0 comments on commit 1271273

Please sign in to comment.