From ea7863ecf890fa06c0dbae18aaebe00552e42611 Mon Sep 17 00:00:00 2001 From: Gayan Perera Date: Wed, 25 Sep 2024 19:07:38 +0200 Subject: [PATCH] update descriptions and readme.md Signed-off-by: Gayan Perera --- README.md | 6 ++++ package.json | 28 ++++++++++--------- test/lightweight-mode-suite/extension.test.ts | 3 +- test/standard-mode-suite/extension.test.ts | 1 + 4 files changed, 24 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 452d23e8e..548e9a785 100644 --- a/README.md +++ b/README.md @@ -250,6 +250,12 @@ The following settings are supported: * `java.completion.collapseCompletionItems`: Enable/disable the collapse of overloaded methods in completion items. Overrides `java.completion.guessMethodArguments`. Defaults to `false`. * `java.diagnostic.filter`: Specifies a list of file patterns for which matching documents should not have their diagnostics reported (eg. '**/Foo.java'). +New in 1.35.0 +* `java.search.scope`: Specifies the scope which must be used for search operation like + - Find Reference + - Call Hierarchy + - Workspace Symbols + Semantic Highlighting =============== [Semantic Highlighting](https://github.com/redhat-developer/vscode-java/wiki/Semantic-Highlighting) fixes numerous syntax highlighting issues with the default Java Textmate grammar. However, you might experience a few minor issues, particularly a delay when it kicks in, as it needs to be computed by the Java Language server, when opening a new file or when typing. Semantic highlighting can be disabled for all languages using the `editor.semanticHighlighting.enabled` setting, or for Java only using [language-specific editor settings](https://code.visualstudio.com/docs/getstarted/settings#_languagespecific-editor-settings). diff --git a/package.json b/package.json index c9721f067..2247d0f5e 100644 --- a/package.json +++ b/package.json @@ -1443,6 +1443,21 @@ "markdownDescription": "The patterns for the methods that will be disabled to show the inlay hints. Supported pattern examples:\n - `java.lang.Math.*` - All the methods from java.lang.Math.\n - `*.Arrays.asList` - Methods named as 'asList' in the types named as 'Arrays'.\n - `*.println(*)` - Methods named as 'println'.\n - `(from, to)` - Methods with two parameters named as 'from' and 'to'.\n - `(arg*)` - Methods with one parameter whose name starts with 'arg'.", "scope": "window", "order": 80 + }, + "java.search.scope": { + "type": "string", + "enum": [ + "all", + "main" + ], + "enumDescriptions": [ + "Search on all classpath entries including reference libraries and projects.", + "All classpath entries excluding test classpath entries." + ], + "default": "all", + "markdownDescription": "Specifies the scope which must be used for search operation like \n - Find Reference\n - Call Hierarchy\n - Workspace Symbols", + "scope": "window", + "order": 90 } } }, @@ -1505,19 +1520,6 @@ "default": "ask", "markdownDescription": "Specifies whether to reload the sources of the open class files when their source jar files are changed.", "scope": "window" - }, - "java.search.scope": { - "type": "string", - "enum": [ - "all", - "main" - ], - "enumDescriptions": [ - "Search on all classpath entries including reference libraries and projects.", - "All classpath entries excluding test classpath entries." - ], - "default": "all", - "markdownDescription": "Specifies the scope which must be used for search operation like \n - Find Reference\n - Call hierarchy\n" } } } diff --git a/test/lightweight-mode-suite/extension.test.ts b/test/lightweight-mode-suite/extension.test.ts index b3424da6c..23f1a2758 100644 --- a/test/lightweight-mode-suite/extension.test.ts +++ b/test/lightweight-mode-suite/extension.test.ts @@ -25,7 +25,8 @@ suite('Java Language Extension - LightWeight', () => { Commands.OPEN_FILE, Commands.CLEAN_SHARED_INDEXES, Commands.RESTART_LANGUAGE_SERVER, - Commands.FILESEXPLORER_ONPASTE + Commands.FILESEXPLORER_ONPASTE, + Commands.CHANGE_JAVA_SEARCH_SCOPE ].sort(); const foundJavaCommands = commands.filter((value) => { return JAVA_COMMANDS.indexOf(value)>=0 || value.startsWith('java.'); diff --git a/test/standard-mode-suite/extension.test.ts b/test/standard-mode-suite/extension.test.ts index 107622635..1ed8f4c71 100644 --- a/test/standard-mode-suite/extension.test.ts +++ b/test/standard-mode-suite/extension.test.ts @@ -120,6 +120,7 @@ suite('Java Language Extension - Standard', () => { Commands.RESOLVE_SOURCE_ATTACHMENT, Commands.FILESEXPLORER_ONPASTE, Commands.RESOLVE_PASTED_TEXT, + Commands.CHANGE_JAVA_SEARCH_SCOPE ].sort(); const foundJavaCommands = commands.filter((value) => { return JAVA_COMMANDS.indexOf(value)>=0 || value.startsWith('java.');