vscode#Memento TypeScript Examples

The following examples show how to use vscode#Memento. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Config.ts    From vscode-drawio with GNU General Public License v3.0 6 votes vote down vote up
constructor(private readonly globalState: Memento) {
		autorun(() => {
			setContext(
				experimentalFeaturesEnabled,
				this.experimentalFeaturesEnabled
			);
		});

		this._vscodeTheme = window.activeColorTheme;
		window.onDidChangeActiveColorTheme((theme) => {
			this._vscodeTheme = theme;
		});
	}
Example #2
Source File: Config.ts    From vscode-drawio with GNU General Public License v3.0 6 votes vote down vote up
// #endregion

	constructor(
		public readonly uri: Uri,
		private readonly config: Config,
		private readonly memento: Memento
	) {
		this.migrateLocalStorageSettingsToMemento();
	}
Example #3
Source File: spItemsRepository.ts    From sourcepawn-vscode with MIT License 5 votes vote down vote up
constructor(globalState: Memento) {
    this.fileItems = new Map<string, FileItems>();
    this.documents = new Set<string>();
    this.globalState = globalState;
  }
Example #4
Source File: spItemsRepository.ts    From sourcepawn-vscode with MIT License 5 votes vote down vote up
private globalState: Memento;
Example #5
Source File: spProviders.ts    From sourcepawn-vscode with MIT License 5 votes vote down vote up
constructor(globalState?: Memento) {
    this.documentationProvider = new JsDocCompletionProvider();
    this.itemsRepository = new ItemsRepository(globalState);
  }
Example #6
Source File: localStorage.ts    From vscode-lean4 with Apache License 2.0 5 votes vote down vote up
constructor(private storage: Memento) { }