pucelle / vscode-css-navigation

Allowing Go to definition from HTML to CSS, or Find References from CSS to HTML.
https://marketplace.visualstudio.com/items?itemName=pucelle.vscode-css-navigation
MIT License
64 stars 8 forks source link

Unable to peek or go to class definition within nesting reference &. #72

Closed mjaysona closed 1 year ago

mjaysona commented 2 years ago

Hi, I am using a class that is nested in a span element and I'm using the & to reference it.

<span class="input--ending">
span {
  &.input--ending {
    color: white
    font-weight: 200
  }
}

Base on the documentation I assumed it is possible to peek or go to class definition of a class inside its nesting reference & but I am able to do so at the moment.

image

https://user-images.githubusercontent.com/14266979/187023330-0ad58184-91fb-4666-9139-64d9776b520f.mov

Take note that it is working in this scenario but not on classes.

span.input {
  &--ending {
    color: white
    font-weight: 200
  }
}

Is this functionality not supported at the moment?

Anthony-Breneliere commented 1 year ago

Hello,

I came for the same issue !

  > span {
    &.mask {
      @extend .col-3;
    }
    &.format {
      @extend .col-4;
    }
  }

select

pucelle commented 1 year ago

Yes, this is an issue, will fix it soon.

pucelle commented 1 year ago

Will be solved at next release v1.14.0.