vscode-extension-tester icon indicating copy to clipboard operation
vscode-extension-tester copied to clipboard

[🚫 Bug] InputBox.setText needs to be confirmed twice when working with File/Folder picker

Open djelinek opened this issue 10 months ago • 1 comments

Describe the bug

Steps to reproduce

await new Workbench().executeCommand('File: Open Folder...');
// ----
input = await InputBox.create();
await input.setText(join(WORKSPACE_FOLDER, 'some_path'));
await input.confirm();
await input.confirm(); // from some reason when using setText for a path pick input it needs to be confirmed twice...

Logs

-

Operating System

macOS

Visual Studio Code

1.97

vscode-extension-tester

8.12.0

NodeJS

20

npm

No response

djelinek avatar Feb 25 '25 19:02 djelinek

The reason is that first there is a Select and then a Confirm button. The Select is formatting the provided input to the expected format (such as adding a slash or backslash at the end of the path when it is a folder

apupier avatar Mar 25 '25 08:03 apupier