-
Notifications
You must be signed in to change notification settings - Fork 11
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
Extension doesn't seem to respect acceptSelectedSuggestion #30
Comments
Hi. Thank you for reporting, but I honestly can't imagine your situation and the problem that is happening to you at all. Can you give me more details, your extension settings and specific VSCode settings? A test scenario that I could simulate and reproduce would help (or short video). |
Certainly. I'm doing this on a fresh VSCode profile and the only extension installed is Z80 Macro-Assembler. All settings are left at default values. Now, if I open a When I press enter, the code completes with the cursor remaining at the end of the same line: Now, let's move to an Now, when I press enter on On a side note, I noticed that this only works in this manner for the first register, if I try to complete the second register, like so: Pressing enter not only completes the register name, but also moves the cursor down to the next line: I understand the reasoning behind this, but I think it would be nice if this behaviour was adjustable, as I often like to write a comment on the same line after the second register. Anyway, back to the issue at hand. ;) Now, let's change the default keybinding for accepting popup selections, i.e., Normally, I like to use something like Now, when I type Which is the expected result as So the code still completes with The cursor is now two lines down. I think it's because the code completion action includes one enter when completing the second register and now it also registers the keypress as a normal enter as well, resulting in two enters. Expected behaviour: I would expect the code not to complete at all when pressing a key that is not bound to the And I would also expect the code completion action not to move the cursor down depending on whether I'm completing the first or the second register name (does this need a separate issue, or is it okay if I just write it here?) |
Hi! Thanks for this great extension. I seem to have a problem though.
It seems that code completion for things like register and label names provided by this extension is handled differently from other completions. When I change the keybinding for
acceptSelectedSuggestion
fromEnter
to something else, pressing enter still completes the selection, except now it also moves the cursor down. Snippets respect the change, though.The text was updated successfully, but these errors were encountered: