diff options
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") { |