Skip to content

Commit 89d3921

Browse files
akaromlfbricon
authored andcommitted
Support "textDocument/selectionRange" (#976)
Signed-off-by: Rome Li <rome.li@microsoft.com>
1 parent 21bdfec commit 89d3921

3 files changed

Lines changed: 57 additions & 126 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ The following settings are supported:
9898
* `java.completion.enabled` : Enable/disable code completion support.
9999
* `java.configuration.checkProjectSettingsExclusions`: Checks if the extension-generated project settings files (`.project`, `.classpath`, `.factorypath`, `.settings/`) should be excluded from the file explorer. Defaults to `true`.
100100
* `java.foldingRange.enabled`: Enable/disable smart folding range support. If disabled, it will use the default indentation-based folding range provided by VS Code.
101+
* `java.selectionRange.enabled`: Enable/disable Smart Selection support for Java. Disabling this option will not affect the VS Code built-in word-based and bracket-based smart selection.
101102
* `java.maven.downloadSources`: Enable/disable eager download of Maven source artifacts.
102103
* `java.codeGeneration.hashCodeEquals.useInstanceof`: Use 'instanceof' to compare types when generating the hashCode and equals methods. Defaults to `false`.
103104
* `java.codeGeneration.hashCodeEquals.useJava7Objects`: Use Objects.hash and Objects.equals when generating the hashCode and equals methods. This setting only applies to Java 7 and higher. Defaults to `false`.
@@ -114,7 +115,7 @@ The following settings are supported:
114115
* `java.import.gradle.arguments`: Arguments to pass to Gradle.
115116
* `java.import.gradle.jvmArguments`: JVM arguments to pass to Gradle.
116117
* `java.import.gradle.home`: setting for GRADLE_HOME.
117-
118+
* `java.selectionRange.enabled`: Setting for Smart Selection support for Java. When it's on, Expand/Shrink Selection works better for Java code.
118119

119120
Troubleshooting
120121
===============

package-lock.json

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

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"preview": true,
1212
"enableProposedApi": false,
1313
"engines": {
14-
"vscode": "^1.31.0"
14+
"vscode": "^1.33.0"
1515
},
1616
"repository": {
1717
"type": "git",
@@ -373,6 +373,12 @@
373373
"description": "Limit number of items in arrays/collections/maps to list, if 0 then list all.",
374374
"default": 0,
375375
"scope": "window"
376+
},
377+
"java.selectionRange.enabled": {
378+
"type": "boolean",
379+
"default": true,
380+
"description": "Enable/disable Smart Selection support for Java. Disabling this option will not affect the VS Code built-in word-based and bracket-based smart selection.",
381+
"scope": "window"
376382
}
377383
}
378384
},
@@ -514,12 +520,12 @@
514520
"tslint": "^5.11.0",
515521
"typescript": "^3.4.1",
516522
"typescript-tslint-plugin": "^0.3.1",
517-
"vscode": "^1.1.33",
523+
"vscode": "^1.1.35",
518524
"webpack": "^4.27.1",
519525
"webpack-cli": "^3.1.2"
520526
},
521527
"dependencies": {
522-
"vscode-languageclient": "~5.1.1",
528+
"vscode-languageclient": "5.3.0-next.6",
523529
"find-java-home": "0.2.0",
524530
"tmp": "^0.0.33",
525531
"path-exists": "^3.0.0",

0 commit comments

Comments
 (0)