Move Extension Context

This commit is contained in:
Josh Johnson 2018-05-03 22:08:12 -04:00
parent 7a5df9f387
commit 907fa71394
4 changed files with 21 additions and 6 deletions

View file

@ -0,0 +1,17 @@
import { ExtensionContext, Memento } from "vscode";
export class ExtensionState {
private static _context: ExtensionContext;
static get global(): Memento {
return this._context.globalState;
}
static get workspace(): Memento {
return this._context.workspaceState;
}
static configure(context: ExtensionContext): void {
this._context = context;
}
}

View file

@ -1 +1,2 @@
export * from "./create-document-selector";
export * from "./extension-state";