summaryrefslogtreecommitdiff
path: root/extension
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-06-15 12:07:51 -0700
committerNate Sesti <sestinj@gmail.com>2023-06-15 12:07:51 -0700
commit1e0ab3f7dfb27d3b8ccccee81ea86ed94f2c45c5 (patch)
treecf7161dc947a74d944ef897482588598bb50b392 /extension
parenta947148bb726cda4bff68605661680e6041b0094 (diff)
downloadsncontinue-1e0ab3f7dfb27d3b8ccccee81ea86ed94f2c45c5.tar.gz
sncontinue-1e0ab3f7dfb27d3b8ccccee81ea86ed94f2c45c5.tar.bz2
sncontinue-1e0ab3f7dfb27d3b8ccccee81ea86ed94f2c45c5.zip
proxy server running locally
Diffstat (limited to 'extension')
-rw-r--r--extension/package.json2
-rw-r--r--extension/src/continueIdeClient.ts12
2 files changed, 6 insertions, 8 deletions
diff --git a/extension/package.json b/extension/package.json
index 13cc92a2..9ff7165c 100644
--- a/extension/package.json
+++ b/extension/package.json
@@ -96,7 +96,7 @@
{
"type": "webview",
"id": "continue.continueGUIView",
- "name": "Continue GUI",
+ "name": ")",
"visibility": "visible"
}
]
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