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

Support for predefined workingsets for search operations

Open gayanper opened this issue 3 years ago • 2 comments

Add support to switch workingset such as "Main Source", "Test Source" for search operations such as

  • Call Hierarchy
  • Type Hierarchy
  • Reference Search
  • Implementation Search etc.

A simple implementation would be to introduce a server setting which will define the default workingset, by default this will be empty or include all main and test sources.

Then from the UI we could provide a picker to switch between Main, Test and All which are predefine values. We will show the current workingset in the status bar as well and clicking on that will trigger picker as well.

On the server side this setting will be used in the all Java search queries to define the scope of the search.

Environment
  • Operating System:
  • JDK version: 17
  • Visual Studio Code version: 1.70.2
  • Java extension version: 1.10.0

gayanper avatar Aug 30 '22 09:08 gayanper

@jdneo @rgrunber WDYT about this ?

gayanper avatar Aug 30 '22 09:08 gayanper

I think the request makes sense. I would prefer including all main and test sources as the default preference.

jdneo avatar Aug 31 '22 01:08 jdneo