You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This used to work before.
I try to set a value to a combo box field - e.g. Files->Auto Save or Editor->Cursor Style
I'm able to locate the setting using let setting = await settingsEditor.findSetting('Auto Save', 'Files');
However, calling await setting.setValue("afterDelay"); shows me the combo box opening, but the value is not set.
I also tried using await setting.sendKeys("a");, but got an "not interactable" error.
Similarly, await setting.getValue() always returns an empty string, regardless of which setting the combo box has.
I tried adding short delays or repatign the action - but this had no effect.
Note that setValue() appears to function ok for text fields (e.g. "Auto Save Delay")
Steps to reproduce
1. run
let setting = await settingsEditor.findSetting('Auto Save', 'Files');
await setting.setValue("afterDelay");
2. you will see the combo box opening, but its value is not modified
Logs
no errors are thrown
Operating System
Windows 10
Visual Studio Code
1.88.0
vscode-extension-tester
7.1.0. Also tried 8.0.2
NodeJS
18.13
npm
8.19.3
The text was updated successfully, but these errors were encountered:
Please note that after upgrading to 8.2.0 I now see a degradation.
By the time await settingsEditor.findSetting('Auto Save', 'Files') as ComboSetting; returns, the setting may not have loaded yet
I had to implement a do-while loop. It usually takes 0-5 attempts until the setting is retrieved and I can modify it.
Here's what I used:
let count = 0;
do {
let setting = await settingsEditor.findSetting('Auto Save', 'Files') as ComboSetting;
if(setting) {
await setting.setValue(state);
break;
}
count++;
} while (count < 10);
Describe the bug
This used to work before.
I try to set a value to a combo box field - e.g.
Files->Auto Save
orEditor->Cursor Style
I'm able to locate the setting using
let setting = await settingsEditor.findSetting('Auto Save', 'Files');
However, calling
await setting.setValue("afterDelay");
shows me the combo box opening, but the value is not set.I also tried using
await setting.sendKeys("a");
, but got an "not interactable" error.Similarly,
await setting.getValue()
always returns an empty string, regardless of which setting the combo box has.I tried adding short delays or repatign the action - but this had no effect.
Note that
setValue()
appears to function ok for text fields (e.g. "Auto Save Delay")Steps to reproduce
Logs
Operating System
Windows 10
Visual Studio Code
1.88.0
vscode-extension-tester
7.1.0. Also tried 8.0.2
NodeJS
18.13
npm
8.19.3
The text was updated successfully, but these errors were encountered: