notify to reload window after changing settings
This commit is contained in:
parent
0cd32ba813
commit
b97ceee5ca
3 changed files with 17 additions and 3 deletions
4
extension/package-lock.json
generated
4
extension/package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue