bug: Incorrect Typescript completion with computed property name #54013
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Help Wanted
You can do this
Milestone
When doing completions where my interface uses computed property names, the completion result does not
show the correct completion items.
Test Code
Current Incorrect Completion Result
Expected
Instead I would expect 3 completion results:
Additional Findings
It looks like the first use of a specific const (
MyKeys
orMyKeys2
) in the interfaceMyInterface
is replaced with the wrong value, but all subsequent references (key_3
) show up correctlyVersion Info
Version: 1.77.3 (Universal)
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:19:37.325Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: Yes
The text was updated successfully, but these errors were encountered: