Skip to content

Go To Definition does not Work on import './index.css' #90155

Closed

Description

@joshglenn

From what I understand, issue 29899 solved this problem... except, for me it does not appear to be working.

I just want to be able to right click and click "Go to definition" and open the css file, instead of having to dig through the folder tree to open it.

What do I need to do to get this working?

Activity

  1. vscodebot commented on Feb 6, 2020

    @vscodebot

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

  2. octref commented on Feb 6, 2020

    @octref
    Contributor

    I assume you meant in a JS file, where you handle this import with webpack, is that correct?

  3. joshglenn commented on Feb 7, 2020

    @joshglenn
    Author

    yes. inside a gatsby project is where I tried it initially. But then I created a new project from scratch and I included only an index.js file and an index.css file. I put the import statement in the index.js file and jump to definition won't work.

    in fact, when I start to type the filename, it doesn't show the .css file there, only another js file that is in the folder. see the image below:

    Screen Shot 2020-02-06 at 7 15 04 PM

  4. mjbvz commented on Feb 7, 2020

    @mjbvz
    Contributor
  5. added
    upstream-issue-linkedThis is an upstream issue that has been reported upstream
    and removed
    info-neededIssue requires more information from poster
    on Feb 7, 2020
  6. locked and limited conversation to collaborators on Mar 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

upstream-issue-linkedThis is an upstream issue that has been reported upstream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions