Skip to content

Commit

Permalink
fix vscode integration tests - altered quickpick behaviour (#5561)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon authored Jun 12, 2024
1 parent 9ed8fe8 commit 4a47e80
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extension/src/test/suite/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,8 @@ const toggleQuickPickItem = async (
itemsLength: number,
quickPick: NumberQuickPick
) => {
for (let itemInd = 1; itemInd <= itemsLength; itemInd++) {
await commands.executeCommand('workbench.action.quickOpenSelectNext')

for (let itemInd = 1; itemInd <= itemsLength + 1; itemInd++) {
await commands.executeCommand('workbench.action.quickOpenNavigateNext')
if (itemInd === number) {
const selectionEvent = getQuickPickSelectionEvent(quickPick, numberInd)
await commands.executeCommand('workbench.action.quickPickManyToggle')
Expand Down

0 comments on commit 4a47e80

Please sign in to comment.