Skip to content

Commit 9054527

Browse files
authored
Unexpected 'Project xxx has no explicit encoding set' warnings (#2418)
Signed-off-by: Snjezana Peco <[email protected]>
1 parent c3b2b6e commit 9054527

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,14 @@ The following settings are supported:
200200
* `java.quickfix.showAt` : Show quickfixes at the problem or line level.
201201
* `java.configuration.workspaceCacheLimit` : The number of days (if enabled) to keep unused workspace cache data. Beyond this limit, cached workspace data may be removed.
202202
* `java.import.generatesMetadataFilesAtProjectRoot` : Specify whether the project metadata files(.project, .classpath, .factorypath, .settings/) will be generated at the project root. Defaults to `false`.
203-
* `java.inlayHints.parameterNames.enabled`: Enable/disable inlay hints for parameter names. Supported values are: `none`(isable 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`.
203+
* `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`.
204204

205-
New in 1.6.0:
205+
New in 1.6.0
206206
* `java.signatureHelp.description.enabled`: Enable/disable to show the description in signature help. Defaults to `false`.
207+
* `java.project.encoding`: Project encoding settings.
208+
- `ignore`: Ignore project encoding settings (default).
209+
- `warning`: Show warning if a project has no explicit encoding set.
210+
- `setDefault`: Set the default workspace encoding settings.
207211

208212
Semantic Highlighting
209213
===============

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,21 @@
880880
"default": "literals",
881881
"markdownDescription": "Enable/disable inlay hints for parameter names:\n```java\n\nInteger.valueOf(/* s: */ '123', /* radix: */ 10)\n \n```\n",
882882
"scope": "window"
883+
},
884+
"java.project.encoding": {
885+
"enum": [
886+
"ignore",
887+
"warning",
888+
"setDefault"
889+
],
890+
"enumDescriptions": [
891+
"Ignore project encoding settings",
892+
"Show warning if a project has no explicit encoding set",
893+
"Set the default workspace encoding settings"
894+
],
895+
"default": "ignore",
896+
"markdownDescription": "Project encoding settings",
897+
"scope": "window"
883898
}
884899
}
885900
},

0 commit comments

Comments
 (0)