bqn-vscode icon indicating copy to clipboard operation
bqn-vscode copied to clipboard

Word completion includes too many characters

Open zopsicle opened this issue 2 years ago • 2 comments

VS Code has a word completion feature that looks at words that are in any of the currently open files. For BQN, it includes characters that aren’t part of the identifier:

https://github.com/razetime/bqn-vscode/assets/50083900/957f5fec-5f72-43bd-8b8f-66495965ab46

In the above screen capture, the expected word completions are modifier1 and modifier2.

Another feature of VS Code is to highlight the word that the cursor is currently on. This seems to include too many characters as well, and this is probably caused by the same:

Screenshot

Using BQN language v0.1.5.

zopsicle avatar Sep 28 '23 11:09 zopsicle

ah, i will fix identifiers to avoid including punctuation in names. this should be a simple fix.

razetime avatar Sep 28 '23 15:09 razetime

oh, also, please copy and paste the text to replicate the bug. it's best to make that a habit in most issues.

Feel free to provide as much text as you can, so I can make sure i'm matching identifiers right.

razetime avatar Oct 21 '23 11:10 razetime