summaryrefslogtreecommitdiff
path: root/extension/src
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-16 23:42:10 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-16 23:42:10 -0700
commit1ea00ebe40807589ffe3d688b5f2e07295864744 (patch)
treec90a54cd359807700c8ebe71764df5e44ff08ae0 /extension/src
parenta1c32513082b7d94414a21827f200224dc3ff846 (diff)
downloadsncontinue-1ea00ebe40807589ffe3d688b5f2e07295864744.tar.gz
sncontinue-1ea00ebe40807589ffe3d688b5f2e07295864744.tar.bz2
sncontinue-1ea00ebe40807589ffe3d688b5f2e07295864744.zip
polishing
Diffstat (limited to 'extension/src')
-rw-r--r--extension/src/commands.ts5
-rw-r--r--extension/src/continueIdeClient.ts2
2 files changed, 2 insertions, 5 deletions
diff --git a/extension/src/commands.ts b/extension/src/commands.ts
index c98cd3c3..5392a7a3 100644
--- a/extension/src/commands.ts
+++ b/extension/src/commands.ts
@@ -61,12 +61,9 @@ const commandsMap: { [command: string]: (...args: any) => any } = {
"continue.suggestionUp": suggestionUpCommand,
"continue.acceptSuggestion": acceptSuggestionCommand,
"continue.rejectSuggestion": rejectSuggestionCommand,
- "continue.openContinueGUI": () => {
- ideProtocolClient.openGUI();
- },
"continue.focusContinueInput": async () => {
if (!debugPanelWebview) {
- await ideProtocolClient.openGUI();
+ vscode.commands.executeCommand("continue.continueGUIView.focus");
}
debugPanelWebview?.postMessage({
type: "focusContinueInput",
diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts
index 9a93a4ef..b4937ac4 100644
--- a/extension/src/continueIdeClient.ts
+++ b/extension/src/continueIdeClient.ts
@@ -192,7 +192,7 @@ class IdeProtocolClient {
async getUserSecret(key: string) {
// Check if secret already exists in VS Code settings (global)
let secret = vscode.workspace.getConfiguration("continue").get(key);
- if (typeof secret !== "undefined") return secret;
+ if (typeof secret !== "undefined" && secret !== null) return secret;
// If not, ask user for secret
secret = await vscode.window.showInputBox({