Skip to content

Auto-closing of curly brace fails under certain circumstances #502

@rgrunber

Description

@rgrunber

bracket-matching-test

I think it would be common to have something like <element>|</element> and want to input a { at the cursor (|) position. However, this doesn't work, and one must manually close the cursor. This works on an empty line or any line where there is whitespace to the right of the cursor. It even works in some pretty odd cases.

See https://code.visualstudio.com/api/language-extensions/language-configuration-guide#autoclosing-before for an explanation and how to override the behaviour.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions