Valid TypeScript breaking syntax highlighting

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The above code is breaking Cursor’s Typescript syntax highlighting. See video capture for example.

Steps to Reproduce

See code example above. It has to do with typing a destructured rest param and having one param be optional ?.

Expected Behavior

Should maintain normal syntax highlighting.

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.5 (Universal)
VSCode Version: 1.99.3
Commit: af58d92614edb1f72bdd756615d131bf8dfa5290
Date: 2025-08-13T02:08:56.371Z (5 days ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 23.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Sure do be quiet in here. :eyes:

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.