microsoft / microsoft/TypeScript
unintended escaped string for hover
Open
Nobody has claimed this yet.
Bug
Domain: Error Messages
Help Wanted
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 117
Description
🔎 Search Terms
"lsp"
🕗 Version & Regression Information
version "typescript": "5.3.3"
⏯ Playground Link
No response
💻 Code
// 🦁.ts
export const foo = "bar";
// main.ts
import { bar } from './🦁.ts';
🙁 Actual behavior
The lsp message shows Module '"./\uD83E\uDD81.ts"' has no exported member 'bar'.ts(2305).
🙂 Expected behavior
It should be Module '"./🦁.ts"' has no exported member 'bar'.ts(2305).
Additional information about the issue
Contributor guide
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
Start by reproducing the hover diagnostic with TypeScript 5.3.3 and the provided emoji-named module, then trace where the LSP message formats the module path. Add a regression test for the diagnostic text and verify that the Unicode filename appears unescaped, matching the expected message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100