microsoft / microsoft/TypeScript

Quick Info for `export { foo as default }` is displaying `export default` only

Open
#54,882 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Domain: LS: Quick Info Experience Enhancement Help Wanted Suggestion
Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

Bug Report

🔎 Search Terms
  • export as default
  • as default
  • export default
  • quickinfo
  • quick info
🔍 Details

Since export { foo as default } is equivalent to export default foo, the quick info display parts should be identical.

💻 Code
const foo = 'foo'

export { foo as /*here*/default }
🙁 Actual behavior
(alias) const foo: "foo"
export default
🙂 Expected behavior
(alias) const foo: "foo"
export default foo

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the TypeScript quick info behavior for the provided export { foo as /*here*/default } example and compare it with export default foo. Trace the quick-info entry point that formats the export and add coverage so both forms display export default foo; done means the expected quick info text is returned.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.