Skip to content

Inconsistent auto bracket insertion when autocompleting a function #99

Description

@apilatosba

I noticed a weird behaviour with Jails. If i have a jails.json file in my project, the function autocompletions automatically insert brackets. If i don't have a jails.json file then function autocompletions doesn't auto insert brackets. I personally don't like bracket auto insertion, so I was investigating why vscode started inserting brackets all of a sudden, and I found that auto bracket insertion only happens when a jails.json file is present.

To Reproduce:

  • create an empty folder
  • create a main.jai file with the following contents:
fffffffff :: () { }

main :: () {

}
  • inside of the main function type "f" and press tab to auto complete the function fffffff. And notice that no brackets were inserted automatically.
  • now create a jails.json file with the following contents:
{

}
  • Restart vscode.
  • Try to autocomplete the function ffffffff again and notice that opening and closing brackets are being auto inserted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions