vscode-spring-initializr icon indicating copy to clipboard operation
vscode-spring-initializr copied to clipboard

cursor scroll to top after each dependency selected

Open stayfool opened this issue 7 years ago • 4 comments

After each dependency selected, cursor scroll up to top, if I need more dependency, I have to scroll down over and over, I think this is not a good experience。

image

stayfool avatar Mar 08 '18 03:03 stayfool

@stayfool Yes, it would be better.

Currently the checkbox-like behavior is implemented by re-rendering the whole list. For the moment, VSCode doesn't provide API to specify an active item of the list. Any suggestion?


BTW, for me, the dependencies I need usually locate in different part of the list, so I'd like to type some keywords to filter the list during selection.

Eskibear avatar Mar 08 '18 06:03 Eskibear

@Eskibear I don't know much about the implementation of VSCode.

Most of the time I know the key dependencies which I need, some extra dependencies is not sure before I see them.

stayfool avatar Mar 09 '18 08:03 stayfool

In one word, the proposed behavior cannot be implemented unless VSCode provide either:

  • Native checkbox style QuickPick API (related issue: https://github.com/Microsoft/vscode/issues/44891) or
  • Additional parameter for initial position in QuickPick API.

@stayfool We'll keep an eye on VSCode's release plan for the related API.

Eskibear avatar Mar 09 '18 08:03 Eskibear

VSCode added native checkbox style QuickPick API in v1.22.2.

It's doable now. Tracked in #54 .

Eskibear avatar Apr 18 '18 06:04 Eskibear