Fix quick-pick initiated by the plugins not displaying with 1 item #6059
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What it does
Fixes #6050
quick-pick
which were initiated by the plugins wasnot displayed when it only contains a single item. The fix is to include
a new flag
runIfSingle
which is used to determine if the quick-pickshould display or execute the item.
runIfSingle
is set totrue
.plugin-ext
sets therunIfSingle
tofalse
so it always displaysthe quick-pick regardless if an single item is present. This behavior is aligned
with previous versions of Theia and VSCode.
How to test
test that quick-pick with 1 items contributed through the plugin system always displays:
1.1. clone the example https://github.com/i053322/quickpickexample
1.2.
cd quickpickexample && npm i && npm run compile
1.3. copy the
quickpickexample
under theplugins
folder1.4. start the application, run the command
Hello World
(quick-pick should display)verify that quick-pick with 1 item work as usual in the app
2.2. start the app (with a single workspace), run the command
New Terminal
(no quick-pick should be displayed)Review checklist
Reminder for reviewers
Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com