summaryrefslogtreecommitdiff
path: root/extension/src/debugPanel.ts
diff options
context:
space:
mode:
authorTy Dunn <ty@tydunn.com>2023-06-29 19:48:14 -0700
committerTy Dunn <ty@tydunn.com>2023-06-29 19:48:14 -0700
commit505bf4f6c10058bfe63de76648cc215f71205197 (patch)
tree9dfe62c06328162050f0746d71bcba762dd23ec9 /extension/src/debugPanel.ts
parentdf602177766f643fd4fe0dbed34ffdd91bc50590 (diff)
downloadsncontinue-505bf4f6c10058bfe63de76648cc215f71205197.tar.gz
sncontinue-505bf4f6c10058bfe63de76648cc215f71205197.tar.bz2
sncontinue-505bf4f6c10058bfe63de76648cc215f71205197.zip
missing things from data collection
Diffstat (limited to 'extension/src/debugPanel.ts')
-rw-r--r--extension/src/debugPanel.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/extension/src/debugPanel.ts b/extension/src/debugPanel.ts
index 79719a3b..4f3d097c 100644
--- a/extension/src/debugPanel.ts
+++ b/extension/src/debugPanel.ts
@@ -231,6 +231,7 @@ export function setupDebugPanel(
apiUrl: getContinueServerUrl(),
sessionId,
vscMediaUrl,
+ dataSwitchOn: vscode.workspace.getConfiguration("continue").get<boolean>("dataSwitch")
});
// // Listen for changes to server URL in settings
@@ -247,7 +248,13 @@ export function setupDebugPanel(
break;
}
-
+ case "toggleDataSwitch": {
+ // Set the setting in vscode
+ await vscode.workspace
+ .getConfiguration("continue")
+ .update("dataSwitch", data.on, vscode.ConfigurationTarget.Global);
+ break;
+ }
case "websocketForwardingOpen": {
let url = data.url;
if (typeof websocketConnections[url] === "undefined") {