notify to reload window after changing settings

This commit is contained in:
Nate Sesti 2023-07-21 16:43:17 -07:00
parent 0cd32ba813
commit b97ceee5ca
3 changed files with 17 additions and 3 deletions

View file

@ -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",

View file

@ -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"

View file

@ -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(