You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would be really handy to navigate vscode's source faster, currently I have to use view references and navigate to the implementation in the peek view.
Reacted by jraadt, thematthopkins and Kirill Kovalevskiy
Thanks for pointing this out Kirill Kovalevskiy (@kkovalevskiy)! I've reassigned this and am very excited about the possibility of being able to use it soon 😉
Reacted by Kirill Kovalevskiy and Marian Zagoruiko
Just tested and it is not working. It still routed to the declaration file.
UPDATE: didn't have time to create a repro yet. I'm trying to [Ctrl+F12] from an import statement of another package and landed on the declaration file.
I also have problems here, going to declaration on another package works and I get to the d.ts file, but going to implementation I only get "No implementation found"
Fredrik Folkesson (@FredrikFolkesson) Please open new issues for any problems related to go to implementation. Include a small project and a list of repo steps so that we can investigate
Sorry if I post here but I'm getting mad about this topic.
I can't stand the fact that visual studio code is not able to jump to the definition in a case like this:
foo = funtion(){
this.init();
}
foo.prototype.init = function(){
// code
}
if I press F12, Alt F12, Ctrl F12, Shift F12, Ctrl F12 or whatever on "this.init()" Visual Studio Code is not able to jump to the foo.prototype.init method.
Where am I wrong? In Visual Studio 2015 this works, also it works on sublime.
Thanks in advance
Matt Bierner (@mjbvz) is this just a limitation of tsserver that it doesn't check the prototype? Does VS2015 use some other system?
// this.init() go to def doesn't worksvarfoo=function(){this.init();};foo.prototype.init=function(){// code};// this.init() go to def worksclassFoo{constructor(){this.init();}init(){}}
VS2015 used a different JavaScript analysis engine, not one the from typescript that we use and that VS2017 uses. That engine could handle some cases better than we can, but also had some performance issue and to my knowledge was not being actively maintained.
Activity
dvlsg commentedon Aug 24, 2016
This is actually available in Visual Studio 2015 Update 1 without resharper. I believe a default shortcut of Ctrl+F12 was added in Update 2.
Tyriar commentedon Oct 17, 2016
This would be really handy to navigate vscode's source faster, currently I have to use view references and navigate to the implementation in the peek view.
kkovalevskiy commentedon Dec 15, 2016
As I can see, tsserver has added support of this feature on their side (microsoft/TypeScript#10482), so why we still don't have it in vs code?
Tyriar commentedon Dec 15, 2016
Thanks for pointing this out Kirill Kovalevskiy (@kkovalevskiy)! I've reassigned this and am very excited about the possibility of being able to use it soon 😉
ProtoType Go To Implementation For TypeScript
5 remaining items
Add Go To Implementation Api (#18346)
Tyriar commentedon Jan 12, 2017
🎆
jrieken commentedon Jan 13, 2017
Matt Bierner (@mjbvz) I have reopened this because it takes aways the Find References keyboard shortcut
jrieken commentedon Jan 13, 2017
Sorry, actually none-sense. I was confused with another extension I have
unional commentedon Mar 24, 2017
Just tested and it is not working. It still routed to the declaration file.
UPDATE: didn't have time to create a repro yet. I'm trying to [Ctrl+F12] from an import statement of another package and landed on the declaration file.
FredrikFolkesson commentedon Apr 12, 2017
I also have problems here, going to declaration on another package works and I get to the d.ts file, but going to implementation I only get "No implementation found"
mjbvz commentedon Apr 12, 2017
Fredrik Folkesson (@FredrikFolkesson) Please open new issues for any problems related to
go to implementation. Include a small project and a list of repo steps so that we can investigateThanks
Wenzil commentedon May 9, 2017
Has a new issue been opened yet? The issue is still occurring.
Edit: I opened #26325
3x1010 commentedon Aug 25, 2017
Sorry if I post here but I'm getting mad about this topic.
I can't stand the fact that visual studio code is not able to jump to the definition in a case like this:
foo = funtion(){
this.init();
}
foo.prototype.init = function(){
// code
}
if I press F12, Alt F12, Ctrl F12, Shift F12, Ctrl F12 or whatever on "this.init()" Visual Studio Code is not able to jump to the foo.prototype.init method.
Where am I wrong? In Visual Studio 2015 this works, also it works on sublime.
Thanks in advance
Tyriar commentedon Aug 30, 2017
Matt Bierner (@mjbvz) is this just a limitation of tsserver that it doesn't check the prototype? Does VS2015 use some other system?
mjbvz commentedon Aug 30, 2017
VS2015 used a different JavaScript analysis engine, not one the from typescript that we use and that VS2017 uses. That engine could handle some cases better than we can, but also had some performance issue and to my knowledge was not being actively maintained.
However the case that 3x1010 s.r.l. (@3x1010) provided looks like bug in TS. For the code:
Go to definition does work on
a.initbut not onthis.init. I've opened microsoft/TypeScript#18171 to track this