diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-21 16:43:17 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-21 16:43:17 -0700 |
commit | b97ceee5cad5f3a645f067353aa33c17dfcf0a60 (patch) | |
tree | 452e69ff2cb74702d63dc5e65ce594e395efc6f0 /extension/src | |
parent | 0cd32ba813f5506c0871159658728b8ce31825e1 (diff) | |
download | sncontinue-b97ceee5cad5f3a645f067353aa33c17dfcf0a60.tar.gz sncontinue-b97ceee5cad5f3a645f067353aa33c17dfcf0a60.tar.bz2 sncontinue-b97ceee5cad5f3a645f067353aa33c17dfcf0a60.zip |
notify to reload window after changing settings
Diffstat (limited to 'extension/src')
-rw-r--r-- | extension/src/continueIdeClient.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts index a1370a01..3a42e773 100644 --- a/extension/src/continueIdeClient.ts +++ b/extension/src/continueIdeClient.ts @@ -167,6 +167,20 @@ class IdeProtocolClient { documentContentProvider ) ); + + // Listen for changes to settings.json + vscode.workspace.onDidChangeConfiguration((event) => { + if (event.affectsConfiguration("continue")) { + vscode.window.showInformationMessage( + "Please reload VS Code for changes to Continue settings to take effect.", + "Reload" + ).then((selection) => { + if (selection === "Reload") { + vscode.commands.executeCommand("workbench.action.reloadWindow"); + } + }); + } + }); } async handleMessage( |