microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.79k stars 29.11k forks source link

wrong Syntax Color #231766

Open witchanto opened 1 week ago

witchanto commented 1 week ago

Type: Bug

i set values for settings.json at "editor.tokenColorCustomizations" but the colors are hearing not my command and values are different to seen color in program-source.
at installed pascal9.8

VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Windows_NT x64 10.0.19045 Modes:

Extensions (1) Extension|Author (truncated)|Version ---|---|--- pascal|ale|9.8.0
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 vscrpc:30673769 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 0ee40948:31013168 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 nativerepl2:31139839 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-t:31132770 wkspc-ranged-t:31151552 cf971741:31144450 defaultse:31146405 iacca2:31156134 notype1:31157159 controlgs:31153265 5fd0e150:31155592 dwcopilotcf:31162479 iconenabled:31158251 ```
witchanto commented 6 days ago

i taken now marketplace extension pascal language basics and it is better, but i wrote him some improvements.

aeschli commented 5 days ago

If you think you found a bug, please provide a the precise steps how to reproduce the issue.

witchanto commented 5 days ago

i set the values and they are different to the seen.

RedCMD commented 2 days ago

works on my machine

Image

"editor.tokenColorCustomizations": {
    "[Default Dark Modern]": {
        "textMateRules": [
            {
                "scope": "support.type.property-name",
                "settings": {
                    "foreground": "#FF0000"
                }
            }
        ]
    }
}
witchanto commented 1 day ago

i have in settings.json only that but the colors in the editor are else

{ "editor.tokenColorCustomizations": { "keywords": "#FFFF00", "types": "#80FF00", "variables": "#FF0080", "functions": "#800080", "comments": "#008080", "numbers": "#FF8080", "strings": "#808080"
} }

witchanto commented 1 day ago

here i wrote at comments #008080 but i see #8080

witchanto commented 1 day ago

again it was #OO8080

RedCMD commented 1 day ago

use markdown code blocks

```json
"comments": "#008080"

or just backticks `` `#008080` ``

works for me
![Image](https://github.com/user-attachments/assets/eeedd480-745b-4088-86c6-d43f59876810)

have you tried running `editor.action.inspectTMScopes`?