Skip to content

Commit

Permalink
Merge pull request #35 from onivim/bryphe/api/workspace
Browse files Browse the repository at this point in the history
API: Update workspace API
  • Loading branch information
bryphe authored Mar 12, 2018
2 parents 0828ad0 + 04723ff commit 60ba1c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
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.40",
"version": "0.0.41",
"description": "Oni's API layer",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
12 changes: 9 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ export namespace Overlays {
}
}

export interface Workspace {
onDirectoryChanged: IEvent<string>
export namespace Workspace {

export interface Api {
activeWorkspace: string
onDirectoryChanged: IEvent<string>

changeDirectory(newWorkspaceDirectory: string): void
}
}

export namespace Snippets {
Expand Down Expand Up @@ -683,6 +689,6 @@ export namespace Plugin {
snippets: Snippets.SnippetManager
statusBar: StatusBar
windows: IWindowManager
workspace: Workspace
workspace: Workspace.Api
}
}

0 comments on commit 60ba1c4

Please sign in to comment.