cmd c not working in settings view when overriding the clipboardCopyAction #221440
Closed as not planned
Closed as not planned
Description
opened on Jul 11, 2024
Does this issue occur when all extensions are disabled?: Yes/No
- VS Code Version: 1.91
- OS Version: macos
Steps to Reproduce:
- override the clipboardCopyAction
function overriddenClipboardCopyAction(textEditor, edit, params) {
//debug
console.log("---COPY TEST---");
//use the selected text that is being copied here
getCurrentSelectionEvents(); //not shown for brevity
//dispose of the overridden editor.action.clipboardCopyAction- back to default copy behavior
clipboardCopyDisposable.dispose();
//execute the default editor.action.clipboardCopyAction to copy
vscode.commands.executeCommand("editor.action.clipboardCopyAction").then(function(){
console.log("After Copy");
//add the overridden editor.action.clipboardCopyAction back
clipboardCopyDisposable = vscode.commands.registerTextEditorCommand('editor.action.clipboardCopyAction', overriddenClipboardCopyAction);
context.subscriptions.push(clipboardCopyDisposable);
});
}
- try to copy text with cmd + c in settings view, it's not working. and others can be working(terminal, editor...)
Activity