We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8d6f1 commit 1f79ee4Copy full SHA for 1f79ee4
src/haxeLanguageServer/features/haxe/completion/CompletionFeature.hx
@@ -110,6 +110,14 @@ class CompletionFeature {
110
if (inComment) {
111
return false;
112
}
113
+ // disable completion after `#if` and `#end`
114
+ if (token.tok.match(Sharp("if")) || token.tok.match(Sharp("end"))) {
115
+ return false;
116
+ }
117
+ // disable completion after `#if foo`
118
+ if (token.parent?.tok.match(Sharp("if")) && token.previousSibling == null) {
119
120
121
if (params.context == null) {
122
return true;
123
0 commit comments