File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/main/kotlin/com/emberjs/hbs Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,16 @@ class HbsLocalCompletion : CompletionProvider<CompletionParameters>() {
107
107
}
108
108
109
109
if (anything is PsiElement && anything.reference is HbsLocalReference ) {
110
- resolve((anything.reference as HbsLocalReference ? )?.resolveYield(), result)
110
+ resolve((anything.reference as ? HbsLocalReference )?.resolveYield(), result)
111
111
resolve(anything.reference?.resolve(), result)
112
112
}
113
113
114
+ if (anything is PsiElement && anything.reference == null && anything.containingFile.viewProvider is GtsFileViewProvider ) {
115
+ val ref = anything.containingFile.originalFile.findReferenceAt(anything.textOffset)
116
+ resolve((ref as ? HbsLocalReference )?.resolveYield(), result)
117
+ resolve(ref?.resolve(), result)
118
+ }
119
+
114
120
if (refElement is HbParam ) {
115
121
if (refElement.children.find { it is HbParam }?.text == " hash" ) {
116
122
val names = refElement.children.filter { it.elementType == HbTokenTypes .HASH }.map { it.children[0 ].text }
You can’t perform that action at this time.
0 commit comments