From 1ea00ebe40807589ffe3d688b5f2e07295864744 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Fri, 16 Jun 2023 23:42:10 -0700 Subject: polishing --- extension/src/commands.ts | 5 +---- extension/src/continueIdeClient.ts | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'extension/src') 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({ -- cgit v1.2.3-70-g09d2