-
What are the prerequisites for the following command to work (show the find widget)? await vscode.commands.executeCommand('actions.find'); It works without any problem in your demo, but not in a Interestingly when I open the search widget with CTRL-F and invoke the close command with a timeout it closes the widget: If I invoke the Re-production: let feedback = await vscode.commands.executeCommand('actions.find');
console.log(feedback);
setTimeout(async () => {
console.log('Trying to close find widget');
feedback = await vscode.commands.executeCommand('closeFindWidget');
console.log(feedback);
setTimeout(async () => {
console.log('Opening widget again');
feedback = await vscode.commands.executeCommand('actions.find');
console.log(feedback);
}, 1000);
}, 5000); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I basically had the answer when I was finished writing. I need to call |
Beta Was this translation helpful? Give feedback.
I basically had the answer when I was finished writing. I need to call
.focus()
on the editor before invoking the command.