diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-02-22 20:46:13 +0100 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-02-22 20:46:13 +0100 |
| commit | acb232ac94f46d6c1b81378ab0be0c5b2f91a446 (patch) | |
| tree | 50519c8b5f4847e73da0712c3ae801c2a184c434 /editors/vscode/src/config.ts | |
| parent | a75c3424a6003f1ccbfbf6f170009ebf7bf18e4e (diff) | |
Automatically add shared collection.
Diffstat (limited to 'editors/vscode/src/config.ts')
| -rw-r--r-- | editors/vscode/src/config.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/editors/vscode/src/config.ts b/editors/vscode/src/config.ts index 8508d6e..af93db8 100644 --- a/editors/vscode/src/config.ts +++ b/editors/vscode/src/config.ts @@ -1,8 +1,6 @@ import * as vscode from 'vscode'; import { log } from "./util"; -//modified from https://github.com/rust-analyzer/rust-analyzer/blob/master/editors/code/src/config.ts - 03.05.2021 - export class Config { readonly extensionId = "danielgavin.ols"; @@ -45,5 +43,11 @@ export class Config { get debugEngine() { return this.get<string>("debug.engine"); } + get askCreateOLS() { return this.get<boolean>("prompt.AskCreateOLS"); } + + public updateAskCreateOLS(ask: boolean) { + this.cfg.update("prompt.AskCreateOLS", ask, vscode.ConfigurationTarget.Global); + } + collections: any [] = []; } |