Duplicated Alias warning string interpolation mistake

Open Beginner friendly
#314 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
typescript
Domain
tooling

Research direction

Locate the duplicate-alias warning implementation and any tests covering alias diagnostics. Check how the alias name is inserted into the warning, then verify that duplicate foo aliases produce the expected message with foo rather than {name}.

Written by the indexing model from the issue text.

Description

The warning for duplicate alias doesn't interpolate the string correctly:

---@alias foo int    Duplicate alias '{name}'. Alias definitions cannot be partial.
---@alias foo int    Duplicate alias '{name}'. Alias definitions cannot be partial.

Expected:

---@alias foo int    Duplicate alias 'foo'. Alias definitions cannot be partial.
---@alias foo int    Duplicate alias 'foo'. Alias definitions cannot be partial.
Dominant language
TypeScript
Stars
753
Forks
113
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from EmmyLua/VSCode-EmmyLua

All issues in EmmyLua/VSCode-EmmyLua

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.