diff options
author | Ty Dunn <ty@tydunn.com> | 2023-06-29 22:55:14 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-06-29 22:55:14 -0700 |
commit | a388490f47b44bd693ae27ab99589fe7ac425c77 (patch) | |
tree | 2ead51756ef11e35232e5bf963586c0e71c04bf7 /extension/src/continueIdeClient.ts | |
parent | 8551e46491d84623559f536415f5e6aa46cda6af (diff) | |
parent | d47c4cafb856ffe2efd7d08ceddc8ceda475a8c6 (diff) | |
download | sncontinue-a388490f47b44bd693ae27ab99589fe7ac425c77.tar.gz sncontinue-a388490f47b44bd693ae27ab99589fe7ac425c77.tar.bz2 sncontinue-a388490f47b44bd693ae27ab99589fe7ac425c77.zip |
Merge branch 'main' of github.com:continuedev/continue
Diffstat (limited to 'extension/src/continueIdeClient.ts')
-rw-r--r-- | extension/src/continueIdeClient.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts index 2e641054..1ccc070c 100644 --- a/extension/src/continueIdeClient.ts +++ b/extension/src/continueIdeClient.ts @@ -1,5 +1,6 @@ // import { ShowSuggestionRequest } from "../schema/ShowSuggestionRequest"; import { + editorSuggestionsLocked, showSuggestion as showSuggestionInEditor, SuggestionRanges, } from "./suggestions"; @@ -119,6 +120,9 @@ class IdeProtocolClient { this.openFile(data.filepath); // TODO: Close file if False break; + case "setSuggestionsLocked": + this.setSuggestionsLocked(data.filepath, data.locked); + break; case "showSuggestion": this.showSuggestion(data.edit); break; @@ -204,6 +208,11 @@ class IdeProtocolClient { openEditorAndRevealRange(filepath, undefined, vscode.ViewColumn.One); } + setSuggestionsLocked(filepath: string, locked: boolean) { + editorSuggestionsLocked.set(filepath, locked); + // TODO: Rerender? + } + async getUserSecret(key: string) { // Check if secret already exists in VS Code settings (global) let secret = vscode.workspace.getConfiguration("continue").get(key); |