Skip to content

Commit e07d2da

Browse files
yaohaizhfbricon
authored andcommitted
Add folding range setting. (#844)
Signed-off-by: Yaohai Zheng <yaozheng@microsoft.com>
1 parent 74f7665 commit e07d2da

File tree

3 files changed

+21
-31
lines changed

3 files changed

+21
-31
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Quick Start
1212
============
1313
1. Install the Extension
1414
2. If you do not have a _Java_ Development Kit correctly [set](#setting-the-jdk)
15-
* Download and install a Java 8, 9, 10 or 11 compatible development kit.
15+
* Download and install a recent Java Development Kit (latest Java 8 is the minimum requirement).
1616
3. Extension is activated when you first access a Java file
1717
* Recognizes projects with *Maven* or *Gradle* build files in the directory hierarchy.
1818

@@ -98,6 +98,9 @@ The following settings are supported:
9898
* `java.codeGeneration.hashCodeEquals.useBlocks`: Use blocks in 'if' statements when generating the hashCode and equals methods. Defaults to `false`.
9999
* `java.codeGeneration.hashCodeEquals.generateComments`: Generate method comments when generating the hashCode and equals methods. Defaults to `false`.
100100

101+
*New in 0.42.0:*
102+
* `java.foldingRange.enabled`: Enable/disable smart folding range support. If disabled, it will use the default indentation-based folding range provided by VS Code.
103+
101104
Troubleshooting
102105
===============
103106
1. Check the status of the language tools on the lower right corner (marked with A on image below).

package-lock.json

Lines changed: 11 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,12 @@
242242
],
243243
"scope": "window"
244244
},
245+
"java.foldingRange.enabled": {
246+
"type": "boolean",
247+
"default": true,
248+
"description": "Enable/disable smart folding range support. If disabled, it will use the default indentation-based folding range provided by VS Code.",
249+
"scope": "window"
250+
},
245251
"java.progressReports.enabled": {
246252
"type": "boolean",
247253
"description": "[Experimental] Enable/disable progress reports from background processes on the server.",

0 commit comments

Comments
 (0)