Skip to content

Brace inside string-literal inside string template confuses JavaScript bracket matcher #134662

@peetklecha

Description

@peetklecha

Does this issue occur when all extensions are disabled?: Yes

Version: 1.60.2
Commit: 7f6ab54
Date: 2021-09-22T11:59:27.195Z
Electron: 13.1.8
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin x64 20.5.0

Steps to Reproduce:

  1. put const str = `${"{"}` into a blank JS file in VS Code
  2. put cursor on the closing brace of the string template interpolation

Screen Shot 2021-10-08 at 10 29 02 AM

Apologies if this has already been noticed, I couldn't find any mention of it.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-bracket-matchingEditor brace matchinginsiders-releasedPatch has been released in VS Code InsidersjavascriptJavaScript support issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions