mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Parameter Name Hints] added couple more blacklist items
This commit is contained in:
+6
-3
@@ -63,18 +63,21 @@ class JavaInlayParameterHintsProvider : InlayParameterHintsProvider {
|
||||
"(message, error)",
|
||||
|
||||
"*.set(*,*)",
|
||||
"*.get(*)",
|
||||
"*.getProperty(*)",
|
||||
"*.setProperty(*,*)",
|
||||
"*.print(*)",
|
||||
"*.println(*)",
|
||||
"*.get(*)",
|
||||
"*.append(*)",
|
||||
"*.charAt(*)",
|
||||
"*.indexOf(*)",
|
||||
"*.contains(*)",
|
||||
"*.startsWith(*)",
|
||||
"*.endsWith(*)",
|
||||
"java.lang.Math.*",
|
||||
"*.equals(*)",
|
||||
"*.equal(*)"
|
||||
"*.equal(*)",
|
||||
|
||||
"java.lang.Math.*"
|
||||
)
|
||||
|
||||
}
|
||||
+16
@@ -670,6 +670,22 @@ class Test {
|
||||
onLineStartingWith("Math").assertNoInlays()
|
||||
}
|
||||
|
||||
fun `test more blacklisted items`() {
|
||||
setup("""
|
||||
class Test {
|
||||
|
||||
void test() {
|
||||
System.getProperty("aaa");
|
||||
System.setProperty("aaa", "bbb");
|
||||
}
|
||||
|
||||
}
|
||||
""")
|
||||
|
||||
onLineStartingWith("System.get").assertNoInlays()
|
||||
onLineStartingWith("System.set").assertNoInlays()
|
||||
}
|
||||
|
||||
private fun getInlays(): List<Inlay> {
|
||||
val editor = myFixture.editor
|
||||
return editor.inlayModel.getInlineElementsInRange(0, editor.document.textLength)
|
||||
|
||||
Reference in New Issue
Block a user