-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Description
When cursor is exactly after a comma in code mode function call arguments, there are no autocomplete suggestions returned from typst_ide::autocomplete - although there if there is at least one space after the comma it works as expected. There is no rule that that separators in argument lists / lists in general need to have a space after them, so I think that suggestions should be available (perhaps only in explicit mode?)
E.g. when cursor position is #text(font: "Noto Sans Mono",|)[] there are no suggestions, but when position is #text(font: "Noto Sans Mono", |)[] there are. This is reproducible in the web app as well.
Now that I'm testing it, it is also true for array and dictionary literals.
Happy to work on a patch if the above is valid.
Reproduction URL
No response
Operating system
Linux
Typst version
- I am using the latest version of Typst