You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-20Lines changed: 7 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,31 +154,18 @@ The following settings are supported:
154
154
-`Hybrid`: Provides full features with better responsiveness. It starts a standard language server and a secondary syntax server. The syntax server provides syntax features until the standard server is ready. And the syntax server will be shutdown automatically after the standard server is fully ready.
155
155
156
156
Default launch mode is `Hybrid`. Legacy mode is `Standard`
157
-
158
-
New in 0.60.0:
159
157
*`java.sources.organizeImports.starThreshold`: Specifies the number of imports added before a star-import declaration is used, default is 99.
160
158
*`java.sources.organizeImports.staticStarThreshold`: Specifies the number of static imports added before a star-import declaration is used, default is 99.
161
-
*`java.semanticHighlighting.enabled`: Enable/disable the [semantic highlighting](https://github.com/microsoft/vscode/wiki/Semantic-Highlighting-Overview). Defaults to `false`.
162
-
`java.requirements.JDK11Warning`: Enable/disable a warning about the impending requirement of Java 11. Defaults to `true`.
159
+
*`java.semanticHighlighting.enabled`: Enable/disable [Semantic Highlighting](https://github.com/redhat-developer/vscode-java/wiki/Semantic-Highlighting) for Java files. Defaults to `false`.
160
+
*`java.requirements.JDK11Warning`: Enable/disable a warning about the impending requirement of Java 11. Defaults to `true`.
163
161
164
162
Semantic Highlighting
165
163
===============
166
-
[Semantic Highlighting](https://code.visualstudio.com/updates/v1_43#_typescript-semantic-highlighting) is a new feature enabled since VS Code 1.43. Color themes can now write [rules](https://code.visualstudio.com/updates/v1_44#_theme-support-for-semantic-tokens) to color semantic tokens reported by this extension. If current color theme does not provide any, you can define your own rules in user settings, e.g.
167
-
```json
168
-
"editor.tokenColorCustomizationsExperimental": {
169
-
"variable":{
170
-
"foreground": "#9CDCFE"// change color for tokens of type 'variable'
171
-
},
172
-
"*.static":{
173
-
"fontStyle": "italic"// all tokens with modifier 'static' should be of italic style
174
-
},
175
-
"*.final":{
176
-
"fontStyle": "bold"// all tokens with modifier 'final' should be of bold style
177
-
}
178
-
}
179
-
```
180
-
Disabled by default, as it's still experimental, it can be enabled with `"java.semanticHighlighting.enabled":true` in settings.json.
181
-
More details in [Semantic Highlighting Wiki Page (Token Styling)](https://github.com/microsoft/vscode/wiki/Semantic-Highlighting-Overview#token-styling).
164
+
[Semantic Highlighting](https://github.com/redhat-developer/vscode-java/wiki/Semantic-Highlighting) is controlled by the `java.semanticHighlighting.enabled` preference. When enabled, it fixes numerous syntax highlighting issues with the default Java Textmate grammar. However, you might experience different small 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.
165
+
166
+
You will be prompted to enable or disable it on startup:
vscode.window.showInformationMessage("Enable [Semantic highlighting](https://github.com/redhat-developer/vscode-java/wiki/Semantic-Highlighting) for Java by default?",enable,disable).then(selection=>{
0 commit comments