Skip to content

[css/scss] Go to definition for css/sass @import #29899

Closed

Description

@mjbvz

Feature Request
Support go to definition on css@imports

@import url(./otherFile.css)

and sass style imports:

@import 'otherFile.css'

Go to definition on otherFile.cssshould try to open otherFile.css in the workspace

Activity

  1. changed the title [-]Go to definition for css @import[/-] [+]Go to definition for css/sass @import[/+] on Jun 30, 2017
  2. changed the title [-]Go to definition for css/sass @import[/-] [+][css/scss] Go to definition for css/sass @import[/+] on Sep 12, 2017
  3. gidztech commented on Mar 21, 2018

    @gidztech

    I've started using VSCode after using WebStorm for quite some time, and this is something I'm really missing. For example, I used to be able to Ctrl/Cmd + Click on a SASS mixin and it would take me to the definition in WebStorm. The import issue also applies to HTML.

  4. JoshuaSoileau commented on Apr 2, 2018

    @JoshuaSoileau

    +1

  5. antenando commented on Apr 19, 2018

    @antenando

    This is the only one thing keeping me from using Code/OS (@code), too. Still using WebStorm...

  6. patie commented on May 3, 2018

    @patie
  7. luke-m commented on May 24, 2018

    @luke-m

    This feature is dearly missed. Please implement.

  8. kasandravtv commented on May 31, 2018

    @kasandravtv

    It is so dearly missed by myself as well. VScode seems a particularly popular choice for big front-end projects, so this would have tons of use.

  9. 0reo27 commented on Jun 4, 2018

    @0reo27

    One of my projects is growing to a point where I need to have this. 😕

  10. RayMcCl commented on Jun 6, 2018

    @RayMcCl

    Would be an excellent addition, especially if supported in the same manner as JS imports where aliasing can be configured in jsconfig.json or something similar.

  11. arbaouimehdi commented on Jun 11, 2018

    @arbaouimehdi

    Is there any vscode plugin solving the problem ?!

  12. 2 remaining items

  13. added 3 commits that reference this issue on Aug 14, 2018
    b036435
    9f993e1
    e3d936e
  14. kevinkace commented on Aug 16, 2018

    @kevinkace

    Would it be possible to also support css-modules import and composes syntax?

    import otherClass from "./otherFile.css";
    
    .newClass {
        composes: differentClass from "./otherFile.css";
    }
  15. added 3 commits that reference this issue on Aug 20, 2018
    b1206fb
    73db88f
    94e7408
  16. added a commit that references this issue on Aug 20, 2018
    8cd3e46
  17. locked and limited conversation to collaborators on Oct 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

css-less-scssIssues and items concerning CSS,Less,SCSS stylingfeature-requestRequest for new features or functionalityon-testplan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions