Each first nested css rule isn't highlighted properly
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- css
- Domain
- tooling
Research direction
Reproduce the nested-rule examples in VS Code and inspect the CSS TextMate grammar in this repository, which provides the syntax highlighting. Compare the first nested rule with subsequent rules and verify the behavior for class selectors, element selectors, and pseudo-selectors. Done means each first nested rule receives the same highlighting as the following rules.
Written by the indexing model from the issue text.
Description
Type: Bug
- Create a css file
- Add a rule
- Nest a few rules inside
Example:
.useful-class {
.rule-without-highlight {
background-color: red;
}
.rule-with-highlight {
background-color: green;
}
.another-rule-with-highlight {
background-color: green;
}
}
useful-selector {
selector-without-highlight {
background-color: red;
}
selector-with-highlight {
background-color: green;
}
another-selector-with-highlight {
background-color: green;
}
}
:first {
:first-child {
background-color: red;
}
:nth-child(2) {
background-color: green;
}
:last-child {
background-color: green;
}
}
Example output:
VS Code version: Code - Insiders 1.98.0-insider (21525b01bf68bf9250cb856f192628fffc449234, 2025-02-11T05:04:43.535Z)
OS version:
Modes:
System Info: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Extensions (16)
| Extension | Author (truncated) | Version |
|---|---|---|
| anycode-kotlin | ms- | 0.0.5 |
| anycode | ms- | 0.0.73 |
| anycode-python | ms- | 0.0.5 |
| anycode-java | ms- | 0.0.5 |
| anycode-cpp | ms- | 0.0.5 |
| anycode-typescript | ms- | 0.0.5 |
| anycode-go | ms- | 0.0.5 |
| anycode-c-sharp | ms- | 0.0.5 |
| anycode-php | ms- | 0.0.6 |
| anycode-rust | ms- | 0.0.6 |
| remotehub | Git | 0.65.2024112101 |
| remote-explorer | ms- | 0.5.2025010909 |
| remote-repositories | ms- | 0.43.2024112101 |
| codespaces | Git | 1.17.3 |
| remote-server | ms- | 1.6.2025010809 |
| azure-repos | ms- | 0.41.2024112101 |
- Dominant language
- JavaScript
- Stars
- 27
- Forks
- 25
- Avg merge
- 3d 19h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/vscode-css
-
microsoft/vscode-css#66 · 2 comments · 1 assignee ·
-
microsoft/vscode-css#54 · 3 comments · 1 assignee ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
microsoft/vscode-css#53 · 6 comments · 28 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
microsoft/vscode-css#45 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
microsoft/vscode-css#46 · 2 comments ·
All issues in microsoft/vscode-css
Similar issues
-
curation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
clerk/javascript#9852 ·
-
bug p1 tools
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
Difficulty 2/5 1-3 hours Newbie friendliness 84/100