Markdown `editor.colorDecorators: false` not honored on startup; likely race condition
@aiday-mar is already working on this.
Since Jun 4, 2026.
Assessment
This issue has not been assessed yet.
Description
As per #233211, the following VS Code setting turns off inappropriately showing strings like #xxxxxx as a CSS color indicator in Markdown (particularly ironic and irritating when the Markdown is a list of VS Code bug titles):
"[markdown]": {
"editor.colorDecorators": false
},
To reproduce (nondeterministic, suggesting a race condition):
- Set
"editor.colorDecorators": falseinsettings.jsonas above. - Create a Markdown page full of
#xxxxxxreferences, such as these:* [GitHub Copilot Cannot read properties of undefined (reading 'toString') when resetting. #319626](https://github.com/microsoft/vscode/issues/319626) * [GitHub Copilot Markdown paste discards HTML tag from inline code #319733](https://github.com/microsoft/vscode/issues/319733) * [[major] v1.123 breaks model-selection ability when resubmitting prompt #319743](https://github.com/microsoft/vscode/issues/319743) - Restart VS Code.
Expected: Strings such as #319626 do not show a color decorator because editor.colorDecorators is set to false.
Actual: Strings such as #319626 often do show a color decorator.
Workaround: When this occurs, switch to another tab and then switch back. Upon switching back to the original tab, the color decorators disappear.
Discussion: This does not always occur. In my case I'm usually loading large workspaces with many files open when it happens. This, along with the fact that it corrects itself after switching tabs, leads me to believe it's some sort of race condition checking the settings upon first load. Nevertheless, it is irritating to have to manually switch tabs just to get the colors to go away. (They shouldn't have been there in the first place, as discussed in #233211; this should have been made an opt-in for languages other than CSS.)
Version: 1.123.0 (user setup)
Commit: 6a44c352bd24569c417e530095901b649960f9f8
Date: 2026-06-03T11:29:03+02:00
Electron: 42.2.0
ElectronBuildId: 14159160
Chromium: 148.0.7778.97
Node.js: 24.15.0
V8: 14.8.178.14-electron.0
OS: Windows_NT x64 10.0.26200
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.9k
- PR merge metrics
- PR metrics pending
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
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
new release
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
All issues in microsoft/vscode
Similar issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
vercel/react-tweet#225 ·