diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-06-29 19:59:02 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-06-29 19:59:02 -0700 |
commit | d7d9e445df7f148df5f25a349a057bbca02bef2b (patch) | |
tree | e9d696ee0e2b356e69e353778a685dd6a7e9a9c2 /extension/src/debugPanel.ts | |
parent | 63db95a69d31d3b8f6c96d5ea25a401671fdf7b6 (diff) | |
parent | e66130652f685187c22f9205817925b94da8264e (diff) | |
download | sncontinue-d7d9e445df7f148df5f25a349a057bbca02bef2b.tar.gz sncontinue-d7d9e445df7f148df5f25a349a057bbca02bef2b.tar.bz2 sncontinue-d7d9e445df7f148df5f25a349a057bbca02bef2b.zip |
Merge branch 'main' of https://github.com/continuedev/continue
Diffstat (limited to 'extension/src/debugPanel.ts')
-rw-r--r-- | extension/src/debugPanel.ts | 9 |
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") { |