From a3b49d8aa2bd3a490f2d5a18d764f274efd584f8 Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Sun, 20 Apr 2025 19:04:56 -0700 Subject: [PATCH] add extensions transfer omits --- .../react/src/void-settings-tsx/Settings.tsx | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx b/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx index 6cbefb7f..4359afa5 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/void-settings-tsx/Settings.tsx @@ -805,7 +805,28 @@ export const OneClickSwitchButton = ({ fromEditor = 'VS Code', className = '' }: setTransferState({ type: 'loading' }) let errAcc = '' - for (let { from, to } of transferTheseFiles) { + // Define extensions to skip when transferring + const extensionBlacklist = [ + // ignore extensions + 'ms-vscode-remote.remote-ssh', + 'ms-vscode-remote.remote-wsl', + // ignore other AI copilots that could conflict with Void keybindings + 'sourcegraph.cody-ai', + 'continue.continue', + 'codeium.codeium', + 'saoudrizwan.claude-dev', // cline + 'rooveterinaryinc.roo-cline', // roo + ]; + for (const { from, to } of transferTheseFiles) { + try { + // find a blacklisted item + const isBlacklisted = extensionBlacklist.find(blacklistItem => { + return from.fsPath?.includes(blacklistItem) + }) + if (isBlacklisted) continue + + } catch { } + console.log('transferring', from, to) // Check if the source file exists before attempting to copy try {