summaryrefslogtreecommitdiff
path: root/extension/src/continueIdeClient.ts
diff options
context:
space:
mode:
authorKirill Dubovitskiy <kirill2003de@gmail.com>2023-08-07 14:54:37 -0700
committerKirill Dubovitskiy <kirill2003de@gmail.com>2023-08-07 15:25:11 -0700
commitc12be8daf60cd3d5554e9f5465aa5e8a5187d288 (patch)
tree9e92dc4a10004ec13cb2bfb45be8828bd2fb4dc6 /extension/src/continueIdeClient.ts
parent0fc56305d762181519569098a99faa255f9cd24f (diff)
downloadsncontinue-c12be8daf60cd3d5554e9f5465aa5e8a5187d288.tar.gz
sncontinue-c12be8daf60cd3d5554e9f5465aa5e8a5187d288.tar.bz2
sncontinue-c12be8daf60cd3d5554e9f5465aa5e8a5187d288.zip
Refactor test scripts and update build configurations
- Added a new esbuild for: - bundling test runners (run tests on vscode + mocha runner) - bundling all tests in the project - Some opinionated renamings / moving test related things around - Changed output directory in tsconfig to avoid overriding the entire out directory - bundles tests also go there Some poking around trying to deprecate jest as it is not used and mocha is more often used for vscode extension testing. Though I assume jest was added to test GUI within extension. This work was started because there are compilation issues with the current setup and neither of the tests are actually working so figured getting one to a working spot is a good start
Diffstat (limited to 'extension/src/continueIdeClient.ts')
-rw-r--r--extension/src/continueIdeClient.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/src/continueIdeClient.ts b/extension/src/continueIdeClient.ts
index cb7baaa6..d89093ca 100644
--- a/extension/src/continueIdeClient.ts
+++ b/extension/src/continueIdeClient.ts
@@ -12,7 +12,7 @@ import {
rejectSuggestionCommand,
} from "./suggestions";
import { FileEditWithFullContents } from "../schema/FileEditWithFullContents";
-import fs = require("fs");
+import * as fs from 'fs';
import { WebsocketMessenger } from "./util/messenger";
import { diffManager } from "./diffs";
const os = require("os");
@@ -383,7 +383,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" && secret !== null) return secret;
+ if (typeof secret !== "undefined" && secret !== null) {return secret;}
// If not, ask user for secret
secret = await vscode.window.showInputBox({