-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19Help wanted from Pursuit fellowship; others please avoid until Dec 19
Milestone
Description
TypeScript Version: 2.7.2
Search Terms: getDefinitionAtPosition kind
Code
namespace A { export interface B {} }
class A {}
interface A {}
var x: A; // do getDefinitionAtPosition on the A reference here
Expected behavior:
In the result, each of the individual declarations should have the appropriate kind
:
[
{ fileName: 'test.ts', textSpan: { start: 10, length: 1 }, kind: 'module', name: 'A', ... },
{ fileName: 'test.ts', textSpan: { start: 44, length: 1 }, kind: 'class', name: 'A', ... },
{ fileName: 'test.ts', textSpan: { start: 59, length: 1 }, kind: 'interface', name: 'A', ... }
]
Actual behavior:
All declarations have the same kind
:
[
{ fileName: 'test.ts', textSpan: { start: 10, length: 1 }, kind: 'class', name: 'A', ... },
{ fileName: 'test.ts', textSpan: { start: 44, length: 1 }, kind: 'class', name: 'A', ... },
{ fileName: 'test.ts', textSpan: { start: 59, length: 1 }, kind: 'class', name: 'A', ... }
]
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do thisPursuitFellowshipHelp wanted from Pursuit fellowship; others please avoid until Dec 19Help wanted from Pursuit fellowship; others please avoid until Dec 19