summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-31 00:55:13 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-31 00:55:13 -0700
commitc3925c04d981d2abc1e21cf72d6e77d165420a73 (patch)
tree5606cd34884ef2114e6c875ce57aed87d1ec2457
parentdd440b4223496f1f67efa9fb48ec9c0919182707 (diff)
downloadsncontinue-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.tsx2
-rw-r--r--extension/src/activation/environmentSetup.ts9
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()));
- }
}