Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1644,11 +1644,13 @@
"type": "string",
"enum": [
"all",
"main"
"main",
"projectOnly"
],
"enumDescriptions": [
"Search on all classpath entries including reference libraries and projects.",
"All classpath entries excluding test classpath entries."
"All classpath entries excluding test classpath entries.",
"Only search sources, tests, and referenced projects, excluding the JDK and referenced libraries from the search."
],
"default": "all",
"markdownDescription": "Specifies the scope which must be used for search operation like \n - Find Reference\n - Call Hierarchy\n - Workspace Symbols",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ async function postExtensionStartInit(
});

context.subscriptions.push(commands.registerCommand(Commands.CHANGE_JAVA_SEARCH_SCOPE, async () => {
const selection = await window.showQuickPick(["all", "main"], {
const selection = await window.showQuickPick(["all", "main", "projectOnly"], {
canPickMany: false,
placeHolder: `Current: ${workspace.getConfiguration().get("java.search.scope")}`,
});
Expand Down
Loading