Skip to content

Go to inferred type definition via keyboard shortcut #10489

Closed

Description

@normalser
  • 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

Activity

  1. waderyan commented on Aug 16, 2016

    @waderyan

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

  2. dbaeumer commented on Aug 17, 2016

    @dbaeumer
    Member

    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. dbaeumer commented on Aug 17, 2016

    @dbaeumer
    Member

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

  4. waderyan commented on Aug 17, 2016

    @waderyan

    This issue was moved to microsoft/TypeScript#10394

  5. waderyan commented on Aug 17, 2016

    @waderyan

    Reopening to track feature request.

  6. added
    feature-request
    on Aug 17, 2016
  7. mhegazy commented on Aug 17, 2016

    @mhegazy

    As noted in microsoft/TypeScript#10394 (comment), The feature is already implemented on the TypeScript side, VSCode needs to expose it trough a user gesture.

  8. waderyan commented on Aug 17, 2016

    @waderyan
  9. added
    typescript
    on Aug 18, 2016
  10. dbaeumer commented on Aug 18, 2016

    @dbaeumer
    Member

    Didn't know it.

    Johannes Rieken (@jrieken) we first need this in the API. Could be bound to Ctrl+Shift+Click. What do you think.

  11. jrieken commented on Aug 18, 2016

    @jrieken
    Contributor

    Makes sense.

    Dirk Bäumer (@dbaeumer) you can already go ahead and that without additional API (since the feature is pretty UI-less). You can implement that as a command and wire it up with context menu and/or keybindings. I did something similar with my print references extension.

    I am in favour of that since having TypeScript exercising this once will help to define/refine the API we want for that.

  12. changed the title [-]TypeScript - ability to go to type definition[/-] [+]Go to inferred type definition via keyboard shortcut[/+] on Nov 21, 2016
  13. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesttypescript

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions