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

QuickInput is not always picking the first element as a fallback on Enter #12383

Open
federicobozzini opened this issue Apr 6, 2023 · 5 comments
Labels
🤔 needs more info issues that require more info from the author

Comments

@federicobozzini
Copy link
Contributor

Bug Description:

Bug similar to the one described by #11979 .

When changing the text of the quick pick creates a new element, the new element is not automatically selected and pressing ENTER just dismisses the quick pick.

Steps to Reproduce:

As an example, in the Theia web blueprint

  1. press F1 and choose clone from URL...
  2. add any URL, press enter
  3. Nothing happens. The behaviour expected would be the same one of vs-code where the application would try to clone the URL.

The same behaviour happens for operations like creating a new branch, after adding a branch name and pressing ENTER nothing happens.

Additional Information

  • Operating System: 20.04
  • Theia Version: Theia web Blueprint at 06/04/2023
@vince-fugnitto
Copy link
Member

@federicobozzini what version is "theia web blueprint" using, from what I can tell it is 1.33.0 which does not have the fix. If you try master of this repo it works well.

@vince-fugnitto vince-fugnitto added the 🤔 needs more info issues that require more info from the author label Apr 6, 2023
@federicobozzini
Copy link
Contributor Author

federicobozzini commented Apr 11, 2023

This is the behaviour I see with version 1.36, when clicking Enter:
theia-quick-pick

Nothing happens.

If instead I click on the quick pick entry with my mouse the item is correctly selected and Theia gets cloned.

@vince-fugnitto
Copy link
Member

@federicobozzini I believe that the git: clone... command present in @theia/git (which is not present in theia-blueprint as it uses the builtins) is likely the only use-case that has the behavior as we handle quick-input differently than other use-cases. A specific fix is likely needed for this use-case if you're interested.

@federicobozzini
Copy link
Contributor Author

@vince-fugnitto Are you saying that only the clone behaviour should currently be different or also other commands in the @theia/git? Just as a reference I see the same behaviour for the command to switch the current git branch, with the quickinput to create a new branch.

@vince-fugnitto
Copy link
Member

I suspect other @theia/git commands might have similar issues as they include some custom logic, or handling of quick-inputs. For standard quick-input (basic use-cases, plugins) the behavior is fine where it properly sets the first item as selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 needs more info issues that require more info from the author
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants