-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[display] nonsense field completion subject in nested switch #8194
Comments
Has nothing to do with nesting, the problem is this code in matcher.ml: Lines 574 to 578 in 1ce52fa
This came from fixing #5656. I cannot reproduce that anymore after removing these lines though, so I guess I'll just optimistically do that. |
Not sure how to test this because it depends on |
Simplest test case is this: class Main {
static function main() {
switch ("p") {
case "p":
"foo";
}
}
} This gave string completion from the |
When typing the
:
after the"p"
here, Haxe returns field completion (?) with 0 items and this range as the subject:This then leads to some rather strange postfix completion:
When the inner switch is commented out, Haxe doesn't give a completion response at all (as expected, since completion was auto-triggered with
:
after acase
).Doesn't seem to be a regression (on the Haxe side at least). Original issue at vshaxe/vshaxe#337. Should be able to work around it by not allowing postfix completion if the completion was auto-triggered with a
:
.The text was updated successfully, but these errors were encountered: