microsoft / microsoft/vscode-css-languageservice

[scss] (dart) sass module system parsing issues

Open
#278 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
384
Forks
217
Avg merge
3d 16h
Merged PRs (30d)
14

Description

Steps to Reproduce:

  1. Write the following
@use "lib";
lib.$var: $other-var; // identifier expected @ $var

@if $condition {
    lib.$var: $other-var; // colon expected @ . semicolon expected @ $other-var
} // atrule or selector expected
  1. Here be warnings warnings

Bullet 1 is probably related to, if not duplicate of, #224. I've not seen the second issue reported.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the SCSS reproduction in the issue and inspect the language service's parser diagnostics for both module-variable assignments, including the case inside @if. Determine whether the behavior overlaps with #224; done means both examples parse without the reported diagnostics and have regression coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
scss, typescript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.