Skip to content

TypeScript - ability to go to type definition #10394

Closed

Description

From @wallverb on August 12, 2016 22:36

  • VSCode Version: Code - Insiders 1.5.0-insider (e9c80f0, 2016-08-12T06:04:09.471Z)
  • OS Version: Darwin x64 15.6.0

Steps to Reproduce:

interface Test {
}

const test:Test = {}
const test2 = test 

If your cursor is inside Test of const test:Test you can click F12 to go to that type definition - but sometimes you do not have type declared explicitly (infered type) - eg. const test2 then it's impossible to go easily to type defintion. Maybe combination of some key + click (or extra entry in popup) Go to type definition

Copied from original issue: microsoft/vscode#10489

Activity

  1. waderyan commented on Aug 17, 2016

    @waderyan
    Author

    Dirk Bäumer (@dbaeumer) this looks like a valid feature request? Is this something provided by VS Code or by Salsa?

  2. waderyan commented on Aug 17, 2016

    @waderyan
    Author

    From Dirk Bäumer (@dbaeumer) on August 17, 2016 15:25

    Nice idea.

    Wade Anderson (@waderyan) in these cases I do the following: I create a issue against TS and link to it from a VS Code issue (this one). I keep this one as a feature request on our end.

  3. waderyan commented on Aug 17, 2016

    @waderyan
    Author

    From Dirk Bäumer (@dbaeumer) on August 17, 2016 15:26

    May be we need a depends-on label to mark these.

  4. mhegazy commented on Aug 17, 2016

    @mhegazy
    Contributor

    TypeScript has a goto type command available on the tsserver, see https://github.com/Microsoft/TypeScript/blob/master/src/server/protocol.d.ts#L188.

    VSCode needs to expose a new shortcut that calls into this command.

  5. added
    External
    on Aug 17, 2016
  6. added
    VS Code Tracked
    on Sep 22, 2016
  7. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalVS Code Tracked

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions