Microsoft/TypeScript
GitHub ã§èŠãregression in "key remapping breaks definition navigation"
Open
#56,019 opened on 2023幎10æ7æ¥
Domain: LS: Symbol NavigationExperience EnhancementHelp WantedSuggestion
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
ð Search Terms
key remapping breaks goto definition navigation mapped type key remap goto def breaks definition navigation
ð Version & Regression Information
- This changed between versions 4.3.5 and 4.4.4
This looks like a regression of the resolution from #47813.
⯠Playground Link
ð» Code
interface Foo {
property: string
}
type MapItWithRemap<T> = {[P in keyof T as P extends string ? `mapped_${P}` : never]: 0}
{
let gotoDef!: MapItWithRemap<Foo>
// 0 - 4.0.5 not supported
// 4.1.5 - 4.3.5 ok
// 4.4.4+ "no definition found for 'mapped_property'"
gotoDef.mapped_property
}
ð Actual behavior
goto definition cannot find originating property declaration
ð Expected behavior
goto definition can find originating property declaration
Additional information about the issue
No response