Vscode: `Go To Definition` several definitions per one instance issue

Created on 21 Jun 2018  路  4Comments  路  Source: microsoft/vscode


  • VSCode Version: 1.24.1
  • OS Version: Microsoft Windows [Version 10.0.17134.112]
  • Libraries and Typescript - all have it's latest version and typings (also, tested with ts 2.9.1)
  • node_modules excluded from both tsconfig.json & User Settings (files.exclude section)

Problem: Some instances of Styled Component or React.Component causes Go To Definition command to include libraries's index.d.ts file, which outputs several definitions per one entity:
image

Steps to Reproduce:

  1. Create React.Component or Styled Component instance
  2. Go to Definition


Does this issue occur when all extensions are disabled?: Yes

*duplicate typescript

Most helpful comment

@mjbvz I am also still seeing this issue despite upgrading my workspace to the latest "next" version more than a week after the intended fix was added. I've not seen anyone say the fix worked for them but I also haven't seen anyone else but @tehSLy say it didn't work for them. Have even tried restarting my VSCode and still the little bugger won't go away

All 4 comments

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

Duplicate of https://github.com/Microsoft/TypeScript/issues/24861

You can workaround it by manually upgrading your workspace to typescript@next by following these instructions

@mjbvz as I mentioned earlier, installed TypeScript has it's latest available version (3.0.0-dev.20180622 atm, which is typescript@next) and the issue still seem to be. Also, I 'd want to point out, that the definitions provided are not similar, it contained in different files, different types aswell (first is interface, second is const assignment)

@mjbvz I am also still seeing this issue despite upgrading my workspace to the latest "next" version more than a week after the intended fix was added. I've not seen anyone say the fix worked for them but I also haven't seen anyone else but @tehSLy say it didn't work for them. Have even tried restarting my VSCode and still the little bugger won't go away

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trstringer picture trstringer  路  3Comments

philipgiuliani picture philipgiuliani  路  3Comments

lukehoban picture lukehoban  路  3Comments

VitorLuizC picture VitorLuizC  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments