From cb518073b0e3711a946282864c150edff35db53a Mon Sep 17 00:00:00 2001 From: Nate Sesti <sestinj@gmail.com> Date: Thu, 15 Jun 2023 12:07:51 -0700 Subject: proxy server running locally --- extension/src/continueIdeClient.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'extension/src/continueIdeClient.ts') diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts index c879c682..ef9a91c8 100644 --- a/extension/src/continueIdeClient.ts +++ b/extension/src/continueIdeClient.ts @@ -192,15 +192,13 @@ 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 (secret && secret !== "") return secret; + if (typeof secret !== "undefined") return secret; // If not, ask user for secret - while (typeof secret === "undefined" || secret === "") { - secret = await vscode.window.showInputBox({ - prompt: `Enter secret for ${key}. You can edit this later in the Continue VS Code settings.`, - password: true, - }); - } + secret = await vscode.window.showInputBox({ + prompt: `Enter secret for ${key}, OR press enter to try for free. You can edit this later in the Continue VS Code settings.`, + password: true, + }); // Add secret to VS Code settings vscode.workspace -- cgit v1.2.3-70-g09d2