Skip to content

Commit 60b41ea

Browse files
authored
Automatically add Protobuf output source directories to clsspath (#2629)
Signed-off-by: sheche <[email protected]>
1 parent ab3e745 commit 60b41ea

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@ The following settings are supported:
207207
* `java.inlayHints.parameterNames.enabled`: Enable/disable inlay hints for parameter names. Supported values are: `none`(disable parameter name hints), `literals`(Enable parameter name hints only for literal arguments) and `all`(Enable parameter name hints for literal and non-literal arguments). Defaults to `literals`.
208208

209209
New in 1.10.0
210-
* `java.import.maven.offline.enabled` : Enable/disable the Maven offline mode. Defaults to `false`.
210+
* `java.import.maven.offline.enabled`: Enable/disable the Maven offline mode. Defaults to `false`.
211211
* `java.codeAction.sortMembers.avoidVolatileChanges`: Reordering of fields, enum constants, and initializers can result in semantic and runtime changes due to different initialization and persistence order. This setting prevents this from occurring. Defaults to `true`.
212+
* `java.jdt.ls.protobufSupport.enabled`: Specify whether to automatically add Protobuf output source directories to the classpath. **Note:** Only works for Gradle `com.google.protobuf` plugin `0.8.4` or higher. Defaults to `true`.
212213

213214
Semantic Highlighting
214215
===============

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,12 @@
918918
"description": "Whether to load lombok processors from project classpath",
919919
"scope": "window"
920920
},
921+
"java.jdt.ls.protobufSupport.enabled": {
922+
"type": "boolean",
923+
"default": true,
924+
"markdownDescription": "Specify whether to automatically add Protobuf output source directories to the classpath.\n\n**Note:** Only works for Gradle `com.google.protobuf` plugin `0.8.4` or higher.",
925+
"scope": "window"
926+
},
921927
"java.codeAction.sortMembers.avoidVolatileChanges": {
922928
"type": "boolean",
923929
"default": true,

0 commit comments

Comments
 (0)