microsoft / microsoft/vscode

'<' and '>' are not colored correctly in left shift assignment and right shift assignment

Open
#329,789 2 comments 0 reactions 1 assignee Claimed by @hediet View on GitHub
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

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

- VS Code Version: 1.133.0-insider (user setup)
- OS Version: 8eaafbf4220a3cb099d7bd99c8d04dca7062236f

Here is all the information I copied from Help - About:

```
Version: 1.133.0-insider (user setup)
Commit: 8eaafbf4220a3cb099d7bd99c8d04dca7062236f
Date: 2026-08-07T16:53:13Z
Electron: 42.8.0
ElectronBuildId: 14845705
Chromium: 148.0.7778.280
Node.js: 24.18.0
V8: 14.8.178.38-electron.0
@github/copilot: 1.0.79-2
@github/copilot-sdk: 1.0.9-preview.3
OS: 8eaafbf4220a3cb099d7bd99c8d04dca7062236f
```

Steps to Reproduce:

1. Create a new text file and set language to TypeScript JSX.
2. Type the following code:
``` tsx
let x = 1;
x <<= 1;
```
3. The two '<' characters are shown in red.
4. Continue type the following code:
``` tsx
x >>= 1;
```
5. The '<' and '>' matched as if they were braces.

I think it's an issue because `<<=` and `>>=` are separate operators. The '<' and '>' shouldn't match like braces, but they worked probably as braces.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.