Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix quick-pick initiated by the plugins not displaying with 1 item #6059

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes #6050

  • fixes issue where quick-pick which were initiated by the plugins was
    not 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-pick
    should display or execute the item.
  • The default value for runIfSingle is set to true.
  • The plugin-ext sets the runIfSingle to false so it always displays
    the quick-pick regardless if an single item is present. This behavior is aligned
    with previous versions of Theia and VSCode.

How to test

  1. 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 the plugins folder
    1.4. start the application, run the command Hello World (quick-pick should display)

  2. 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

@vince-fugnitto vince-fugnitto added bug bugs found in the application plug-in system issues related to the plug-in system labels Aug 28, 2019
@vince-fugnitto vince-fugnitto requested a review from a team as a code owner August 28, 2019 12:26
…item

Fixes #6050

- fixes issue where `quick-pick` which were initiated by the plugins was
not 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-pick
should display or execute the item.
- The default value for `runIfSingle` is set to `true`.
- The `plugin-ext` sets the `runIfSingle` to `false` so it always displays
the quick-pick regardless if an single item is present. This behavior is aligned
with previous versions of Theia and VSCode.

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Copy link
Contributor

@vinokurig vinokurig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with the provided plugin, LGTM

@akosyakov
Copy link
Member

@vince-fugnitto please merge

@vince-fugnitto
Copy link
Member Author

Thanks for the review @JPinkney @vinokurig :)

@vince-fugnitto vince-fugnitto merged commit 30b340a into master Aug 29, 2019
@vince-fugnitto vince-fugnitto deleted the vf/GH-6050 branch August 29, 2019 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application plug-in system issues related to the plug-in system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

quickpick didn't open with 1 item
4 participants