Skip to content

Incorrect semantic highlightingΒ #56254

@Vap0r1ze

Description

@Vap0r1ze

πŸ”Ž Search Terms

token mismatch, syntax highlighting

πŸ•— Version & Regression Information

I tested with latest 5.0, 5.1, and 5.2 and it happens with all of them.

⏯ Playground Link

No response

πŸ’» Code

import { ElectronAPI } from "@electron-toolkit/preload";

declare global {
    interface Window {
        electron: ElectronAPI;
        api: unknown;
    }
}

πŸ™ Actual behavior

Code_tNdGogku8S.mp4

I have this file in my project that does this and it looks like a sourcemap / token map mismatch / offset or something.

πŸ™‚ Expected behavior

The tokens should be mapping to their respective reflections like in this playground

Additional information about the issue

I can't reproduce this in another file it just keeps happening in this specific file in this specific project. I can reproduce it if I copy the project and install the dependencies, so if someone wants to investigate it I can add you to a repository with the code.

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFix AvailableA PR has been opened for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions