microsoft / microsoft/TypeScript-TmLanguage
TypeScript IntelliSense support less valid variable unicode identifier than tsc
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 471
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Description
Code
let let big𒊹f = 4;
console.log(big𒊹f);
//4
"𒊹" is a valid identifier unicode, in https://www.typescriptlang.org/play, it works normally.
But in vscode JavaScript and TypeScript Nightly extension, an error "Invalid character.ts(1127)" will show.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the diagnostic in VS Code using the TypeScript TextMate grammar and the identifier shown in the issue, then inspect the grammar rule that recognizes variable identifiers. Done means the valid Unicode identifier is accepted without an Invalid character diagnostic while ordinary TypeScript identifiers continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100