Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

typing while foo < autocompletes to while foo <> #108

Open
trafnar opened this issue Aug 25, 2021 · 9 comments
Open

typing while foo < autocompletes to while foo <> #108

trafnar opened this issue Aug 25, 2021 · 9 comments

Comments

@trafnar
Copy link
Contributor

trafnar commented Aug 25, 2021

if you want to type while foo < bar it autocompletes to while foo <> forcing you to delete the extraneous >

Copy link
Member

somebee commented Aug 27, 2021

There's really no way about it in vscode atm, but the first result of the completion should be a blank item that completes by typing space? So that typing < and then should erase the closing >? If it does not happen for you, see if you have editor.acceptSuggestionOnCommitCharacter toggled off in vscode settings. Maybe see if changing editor.suggestSelection to first also helps for this.

@trafnar
Copy link
Contributor Author

trafnar commented Aug 27, 2021

I tried changing that setting with the same result, I actually immediately get the closing > upon typing the opening < without having to press space or anything. Same thing doesn't happen with typescript typing while(foo < bar)

Screen Recording (Code)

@somebee
Copy link
Member

somebee commented Sep 3, 2021

It is very weird that you don't get a list of completions there. Do you never get a list of tags when you write <?

image

@somebee
Copy link
Member

somebee commented Sep 3, 2021

Do you have editor.suggestOnTriggerCharacters turned on? If not, could you try that?

@somebee
Copy link
Member

somebee commented Sep 12, 2021

Do you still have this problem @trafnar? Did you check the setting I mentioned? If you're not seeing the same as my screenshot above there is something very wrong with completions on your setup so I'd love to figure out why :)

@trafnar
Copy link
Contributor Author

trafnar commented Sep 13, 2021

Yes it does still happen. I tried setting editor.suggestOnTriggerCharacters to true and it still happens.

@somebee
Copy link
Member

somebee commented Sep 20, 2021

Does that mean that you do not get any suggestions usually when you type in < in an imba file? Another potential reason: Can you set "editor.suggestSelection" to "first"? If that is the culprit I'll try to find ways around it

@trafnar
Copy link
Contributor Author

trafnar commented Sep 20, 2021

ok, when I turned off editor.acceptSuggestionOnCommitCharacter it fixed the issue. And I see now that you asked me to do that in your first comment but I missed it.. my bad 😭

@trafnar
Copy link
Contributor Author

trafnar commented Sep 20, 2021

This issue actually happens in the scimba editor too!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants