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 | c6d21674d688cef3d93b63fc1bf0aa9e07a323e3 (patch) | |
tree | f6dcb2fa9d377569a4fcf55e612c2c64efce62d9 | |
parent | 08e73ec81ebb2d91856b4dc711149e32e12fd701 (diff) | |
download | sncontinue-c6d21674d688cef3d93b63fc1bf0aa9e07a323e3.tar.gz sncontinue-c6d21674d688cef3d93b63fc1bf0aa9e07a323e3.tar.bz2 sncontinue-c6d21674d688cef3d93b63fc1bf0aa9e07a323e3.zip |
notify to reload window after changing settings
-rw-r--r-- | extension/package-lock.json | 4 | ||||
-rw-r--r-- | extension/package.json | 2 | ||||
-rw-r--r-- | extension/src/continueIdeClient.ts | 14 |
3 files changed, 17 insertions, 3 deletions
diff --git a/extension/package-lock.json b/extension/package-lock.json index d44b84c4..5c8e27d0 100644 --- a/extension/package-lock.json +++ b/extension/package-lock.json @@ -1,12 +1,12 @@ { "name": "continue", - "version": "0.0.187", + "version": "0.0.188", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "continue", - "version": "0.0.187", + "version": "0.0.188", "license": "Apache-2.0", "dependencies": { "@electron/rebuild": "^3.2.10", diff --git a/extension/package.json b/extension/package.json index 34bc8bc4..3d44c156 100644 --- a/extension/package.json +++ b/extension/package.json @@ -14,7 +14,7 @@ "displayName": "Continue", "pricing": "Free", "description": "The open-source coding autopilot", - "version": "0.0.187", + "version": "0.0.188", "publisher": "Continue", "engines": { "vscode": "^1.67.0" 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( |