Skip to content

Quick pick API broken when quickpick.buttons option is set to true #110432

@karrtikr

Description

@karrtikr

THIS IS NOT A PYTHON EXTENSION ISSUE

This only happens starting from VSCode 1.51. 1.50 works fine. Process picker in the Python extension is broken because of this: microsoft/vscode-python#14678

Version: 1.52.0-insider (user setup)
OS: Windows_NT x64 10.0.19042

Steps to Reproduce:

  1. Execute the following code to display quickpick
const refreshButton = {
    iconPath: 'getIcon(REFRESH_BUTTON_ICON)'
};
const quickPick = vscode.window.createQuickPick();
quickPick.items = [{ label: 'some label' }];
quickPick.buttons = [refreshButton];
quickPick.show();
  1. No quickpick is displayed. Remove the .buttons assignment, or empty it.
const refreshButton = {
    iconPath: 'getIcon(REFRESH_BUTTON_ICON)'
};
const quickPick = vscode.window.createQuickPick();
quickPick.items = [{ label: 'some label' }];
quickPick.buttons = [];
quickPick.show();

Quickpick is displayed. The original code which failed is here.

  1. Another workaround: Add another quickPick.show() line at the end.
const refreshButton = {
    iconPath: 'getIcon(REFRESH_BUTTON_ICON)'
};
const quickPick = vscode.window.createQuickPick();
quickPick.items = [{ label: 'some label' }];
quickPick.buttons = [refreshButton];
quickPick.show();
quickPick.show();

Quickpick is displayed. But refresh icon isn't displayed.

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code Insidersquick-pickQuick-pick widget issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions