Skip to content
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

[vscode, autocomplete] Suffix autocomplete messes up on first completion #511

Open
shayded-exe opened this issue Sep 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shayded-exe
Copy link

Please see the results I get for the following completion:

nums := make([dynamic]int)
nums.append // autocomplete this

@(export)
foobar :: proc() -> bool {
	return true
}

image

It doesn't seem to happen in all cases, but I can consistently get it to occur if the following line has an attribute like @(export).

It works fine if I undo and do the completion again. It also works if I hit escape to close the autocomplete, then ctrl+space to reopen it and hit tab.

I have tried with my suggestion insert mode set to both insert and replace with the same results.

@DanielGavin
Copy link
Owner

It seems core:odin/parser thinks the expression is together. It only happens on nums. autocomplete, but not if you already have some identifier after ., and then pressing toggling autocomplete <ctrl+space>.

@DanielGavin DanielGavin added the bug Something isn't working label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants