Skip to content

Commit aaef6e8

Browse files
snjezafbricon
authored andcommitted
Exclude certain packages from autocomplete/autoimport
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
1 parent dc440b1 commit aaef6e8

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,14 +110,15 @@ The following settings are supported:
110110
* `java.codeGeneration.toString.skipNullValues`: Skip null values when generating the toString method. Defaults to `false`.
111111
* `java.codeGeneration.toString.listArrayContents`: List contents of arrays instead of using native toString(). Defaults to `true`.
112112
* `java.codeGeneration.toString.limitElements`: Limit number of items in arrays/collections/maps to list, if 0 then list all. Defaults to `0`.
113-
114-
*New in 0.47.0*
115-
116113
* `java.import.gradle.arguments`: Arguments to pass to Gradle.
117114
* `java.import.gradle.jvmArguments`: JVM arguments to pass to Gradle.
118115
* `java.import.gradle.home`: setting for GRADLE_HOME.
119116
* `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.
120117

118+
*New in 0.49.0*
119+
120+
* `java.completion.filteredTypes`: Defines the type filters. All types whose fully qualified name matches the selected filter strings will be ignored in content assist or quick fix proposals and when organizing imports. For example 'java.awt.*' will hide all types from the awt packages.
121+
121122
Troubleshooting
122123
===============
123124
1. Check the status of the language tools on the lower right corner (marked with A on image below).

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@
263263
],
264264
"scope": "window"
265265
},
266+
"java.completion.filteredTypes": {
267+
"type": "array",
268+
"description": "Defines the type filters. All types whose fully qualified name matches the selected filter strings will be ignored in content assist or quick fix proposals and when organizing imports. For example 'java.awt.*' will hide all types from the awt packages.",
269+
"default": [
270+
"java.awt.*",
271+
"com.sun.*"
272+
],
273+
"scope": "window"
274+
},
266275
"java.completion.importOrder": {
267276
"type": "array",
268277
"description": "Defines the sorting order of import statements. A package or type name prefix (e.g. 'org.eclipse') is a valid entry. An import is always added to the most specific group.",

0 commit comments

Comments
 (0)