posit-dev / posit-dev/positron
Color decorator behaves weirdly in CSS and SCSS files
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
Hi!
I recently updated positron, and since then the "color decorator" has been duplicated in CSS files when there is extra space. I'm not entirely sure if this only happens with CSS.
System details:
Positron and OS details:
Positron Version: 2025.05.0 (Universal) build 75
Code - OSS Version: 1.99.0
Commit: 6af5bd88e7ff43e833efd238a6a9bc077800059a
Date: 2025-04-22T03:29:14.910Z
Electron: 34.3.2
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.4.0
Interpreter details:
/
Describe the issue:
In the video, I try to show the behavior of an extra space between color: and the actual color. Note that I use prettier to format the file when on save.
https://github.com/user-attachments/assets/7e7bf2e0-a228-4bb6-947a-18b856ffdd7b
Steps to reproduce the issue:
body {
color: #ffffff;
}
Expected or desired behavior:
A single "color decorator" must appear in both cases (with or without the extra space).
Other info
I haven't found any related issues, but perhaps "color decorator" isn't the most appropriate name?
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.
Research direction
The report names no source file or test. Start by reproducing the duplicated color decorator in the provided CSS example, then compare behavior with and without the extra space in CSS and SCSS; done means exactly one decorator appears in both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, scss
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100