diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-09-01 18:31:33 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-09-01 18:31:33 -0700 |
commit | 2f792f46026a6bb3c3580f2521b01ecb8c68117c (patch) | |
tree | 36cecf6d218bc166c0a8c1c78261b4feac7f01cd /extension/src/continueIdeClient.ts | |
parent | 5c8b28b7fddf5b214de61102c768ef44d4087870 (diff) | |
download | sncontinue-2f792f46026a6bb3c3580f2521b01ecb8c68117c.tar.gz sncontinue-2f792f46026a6bb3c3580f2521b01ecb8c68117c.tar.bz2 sncontinue-2f792f46026a6bb3c3580f2521b01ecb8c68117c.zip |
feat: :sparkles: improved model dropdown
Diffstat (limited to 'extension/src/continueIdeClient.ts')
-rw-r--r-- | extension/src/continueIdeClient.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts index 353584e9..539eb10d 100644 --- a/extension/src/continueIdeClient.ts +++ b/extension/src/continueIdeClient.ts @@ -146,6 +146,32 @@ class IdeProtocolClient { const filepath = event.uri.fsPath; const contents = event.getText(); this.messenger?.send("fileSaved", { filepath, contents }); + + if (event.fileName.endsWith("config.py")) { + if ( + this.context.globalState.get<boolean>( + "continue.showConfigInfoMessage" + ) !== false + ) { + vscode.window + .showInformationMessage( + "Reload the VS Code window for your changes to the Continue config to take effect.", + "Reload", + "Don't show again" + ) + .then((selection) => { + if (selection === "Don't show again") { + // Get the global state + context.globalState.update( + "continue.showConfigInfoMessage", + false + ); + } else if (selection === "Reload") { + vscode.commands.executeCommand("workbench.action.reloadWindow"); + } + }); + } + } }); // Setup listeners for any selection changes in open editors |