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/extension.ts | |
| parent | a75c3424a6003f1ccbfbf6f170009ebf7bf18e4e (diff) | |
Automatically add shared collection.
Diffstat (limited to 'editors/vscode/src/extension.ts')
| -rw-r--r-- | editors/vscode/src/extension.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/editors/vscode/src/extension.ts b/editors/vscode/src/extension.ts index 0dd4268..f7ad636 100644 --- a/editors/vscode/src/extension.ts +++ b/editors/vscode/src/extension.ts @@ -107,14 +107,22 @@ export async function activate(context: vscode.ExtensionContext) { fs.access(olsFile, constants.F_OK).catch(async err => { if (err) { + if (!config.askCreateOLS) { + return; + } + const userResponse = await vscode.window.showInformationMessage( "No ols config file in the workspace root folder. Do you wish to create one?", "Yes", - "No" + "No", + "Don't ask again" ); if (userResponse === "Yes") { createOlsConfig(ctx); + } else if (userResponse === "Don't ask again") { + config.updateAskCreateOLS(false); + return; } } |