IDEA-261098 GotoVarTypeHandler: don't target var variable identifier to the variable

This was needed to show the doc as if the variable was referenced. In the new implementation we show the same
doc info regardless whether the target under caret is referenced or declared, but this handler made GTDU believe
that the variable was referenced, and GTDU was choosing navigation to the referenced target instead of showing usages.

GitOrigin-RevId: 78e3554df87d564aeea04f707a0fa1309031912f
This commit is contained in:
Daniil Ovchinnikov
2021-02-04 13:55:13 +01:00
committed by intellij-monorepo-bot
parent 1d2e787f53
commit 1ba096bbc2
4 changed files with 15 additions and 12 deletions

View File

@@ -0,0 +1 @@
<a href="psi_element://java.lang.String">String</a> a = &quot;aaa&quot;

View File

@@ -0,0 +1,6 @@
class UsageSample {
public void foo() {
var <caret>a = "aaa";
}
}