vscode-java-dependency icon indicating copy to clipboard operation
vscode-java-dependency copied to clipboard

Better sorting the children of project node

Open jdneo opened this issue 2 years ago • 3 comments

          LGTM overall. One small thing: can we adjust the order of source sets? Showing main/test source sets before the generated source sets would be better. 

after: image

before: image

Originally posted by @CsCherrYY in https://github.com/microsoft/vscode-java-dependency/pull/730#pullrequestreview-1377119435

jdneo avatar Apr 10 '23 06:04 jdneo

One solution is sort at server side, which has the following order:

source[non-test] > source[test] > source[optional] > containers[JDK] > other containers

jdneo avatar Apr 10 '23 06:04 jdneo

Is it possible to sort at client side, which would provide more flexibility? And the server side only provides type&context of the nodes.

Eskibear avatar Apr 10 '23 08:04 Eskibear

Is it possible to sort at client side, which would provide more flexibility? And the server side only provides type&context of the nodes.

Yes, as long as the required information of the package roots can be passed to the client, then we can do it at the client side.

jdneo avatar Apr 10 '23 08:04 jdneo