diff --git a/package.json b/package.json index 54744ca..48740e9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.ts b/src/index.ts index 79f80a8..10eab08 100644 --- a/src/index.ts +++ b/src/index.ts @@ -81,8 +81,14 @@ export namespace Overlays { } } -export interface Workspace { - onDirectoryChanged: IEvent +export namespace Workspace { + + export interface Api { + activeWorkspace: string + onDirectoryChanged: IEvent + + changeDirectory(newWorkspaceDirectory: string): void + } } export namespace Snippets { @@ -683,6 +689,6 @@ export namespace Plugin { snippets: Snippets.SnippetManager statusBar: StatusBar windows: IWindowManager - workspace: Workspace + workspace: Workspace.Api } }