-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
infer T extends ... syntax within template literal types is highlighted incorrectly. It works fine in vanilla VSCode and VSCodium with TypeScript Nightly extension installed from open-vsx.
Please confirm that this problem is VSCodium-specific
- This bug doesn't happen if I use Microsoft's Visual Studio Code. It only happens in VSCodium.
Please confirm that the issue/resolution isn't already documented
- I checked the Docs page and the Troubleshooting page and my issue is not mentioned there.
To Reproduce
type T0 = "100" extends `${infer T extends number}` ? T : never; // 100
type T1 = "100" extends `${infer T extends bigint}` ? T : never; // 100n
type T2 = "true" extends `${infer T extends boolean}` ? T : never; // trueTaken from microsoft/TypeScript#48094
Expected behavior
Template literal highlight shouldn't leak beyond the closing tick.
Desktop (please complete the following information):
- OS: Windows 10
- Architecture: x64
- Version: 1.94.2.24286
- App Manager: scoop
- Sandboxed: no
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working

