Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliSense for variable values #73

Closed
v36u opened this issue Oct 8, 2024 · 1 comment
Closed

IntelliSense for variable values #73

v36u opened this issue Oct 8, 2024 · 1 comment

Comments

@v36u
Copy link

v36u commented Oct 8, 2024

<div class="row mt-5">
  <div class="md:col-4">
    @{
      var testClass = "mb-3";
    }
    <p class="@testClass"></p>
  </div>
</div>

For the above example, there are no IntelliSense suggestions for the value assigned to testClass.

I think adding IntelliSense support for values of variables with names ending with [Cc]lass[es] would improve DX. Please also make it support reassignment, e.g.:

<div class="row mt-5">
  <div class="md:col-4">
    @{
      var testClass = "mb-3";
      
      if (a > b) 
      {
        testClass = "pt-2";
      }
    }
    <p class="@testClass"></p>
  </div>
</div>
theron-wang added a commit that referenced this issue Oct 10, 2024
@theron-wang
Copy link
Owner

Added in 1.5.6. Currently, it only supports IntelliSense: class sorting and linting will take a significant rewrite that I'm not able to do at the moment; I will definitely work on that in the future, however. Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants