Skip to content

typst-ide: No autocomplete suggestions immediately after comma in function arguments #6313

@IgKh

Description

@IgKh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood contributionSuitable for contribution, but unlike "good first issue", it may need prior experiencegood first issueGood for newcomersideAutocompletion, tooltips, formatting, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions