diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-31 00:55:13 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-31 00:55:13 -0700 |
commit | c3925c04d981d2abc1e21cf72d6e77d165420a73 (patch) | |
tree | 5606cd34884ef2114e6c875ce57aed87d1ec2457 | |
parent | dd440b4223496f1f67efa9fb48ec9c0919182707 (diff) | |
download | sncontinue-c3925c04d981d2abc1e21cf72d6e77d165420a73.tar.gz sncontinue-c3925c04d981d2abc1e21cf72d6e77d165420a73.tar.bz2 sncontinue-c3925c04d981d2abc1e21cf72d6e77d165420a73.zip |
fix: :bug: ctrl+c for windows overriding copy
-rw-r--r-- | extension/react-app/src/components/Layout.tsx | 2 | ||||
-rw-r--r-- | extension/src/activation/environmentSetup.ts | 9 |
2 files changed, 1 insertions, 10 deletions
diff --git a/extension/react-app/src/components/Layout.tsx b/extension/react-app/src/components/Layout.tsx index 500dc921..c328a206 100644 --- a/extension/react-app/src/components/Layout.tsx +++ b/extension/react-app/src/components/Layout.tsx @@ -101,7 +101,7 @@ const Layout = () => { if (event.metaKey && event.altKey && event.code === "KeyN") { client?.loadSession(undefined); } - if (event.metaKey && event.code === "KeyC") { + if ((event.metaKey || event.ctrlKey) && event.code === "KeyC") { const selection = window.getSelection()?.toString(); if (selection) { // Copy to clipboard diff --git a/extension/src/activation/environmentSetup.ts b/extension/src/activation/environmentSetup.ts index e67a5852..7ca87768 100644 --- a/extension/src/activation/environmentSetup.ts +++ b/extension/src/activation/environmentSetup.ts @@ -346,13 +346,4 @@ export async function startContinuePythonServer(redownload: boolean = true) { // Write the current version of vscode extension to a file called server_version.txt fs.writeFileSync(serverVersionPath(), getExtensionVersion()); - - // If running on remote, forward the port - if ( - vscode.env.remoteName && - vscode.extensions.getExtension("continue.continue")?.extensionKind === - vscode.ExtensionKind.Workspace - ) { - await vscode.env.asExternalUri(vscode.Uri.parse(getContinueServerUrl())); - } } |