question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Customizing color of comparsion operators doesn't take effect

See original GitHub issue

Describe the bug Customizing “keyword.operator.logical” doesn’t work.

To Reproduce Steps to reproduce the behavior:

  1. Open settings.json
  2. Add:
"editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "scope": "keyword.operator.logical",
        "settings": {
          "foreground": "#ff00ff",
          "fontStyle": "bold"
        }
      }
    ]
  }

Expected behavior Expected color change, but it doesn’t change. Tried this customization with other themes and they worked.

Screenshots & Example Code

Desktop

  • OS: Windows 10 Pro 64 bit
  • VSCODE Version: 1.71.0
  • Theme version v3.15.4

Additional context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Binaryifycommented, Sep 7, 2022

image had you check the code scope

0reactions
safarlicommented, Sep 7, 2022

image had you check the code scope

Oh, thanks, I found the keys for it, they are keyword.operator.comparison & keyword.operator.relational. But, suprisingly they don’t show up on intellisense/quick suggestions . Also, more general keyword.operator doesn’t have effect on it (But in other color themes it works as intended. In this theme, it’s probably due to overriding issues).

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Why does this color comparison fail? - Stack Overflow
Actually your comparison fails on this step. Field knownColor compared. It has value of KnownColor enum, or zero, if color was not created...
Read more >
A deep dive on themes, fonts, and more! - YouTube
An in -depth look at customizing the appearance of VS Code, with a focus ... First we'll cover basic customization including zoom level,...
Read more >
Comparison operator and function reference
Learn about using and developing with operators and functions for filter expressions and condition expressions in DynamoDB.
Read more >
Using media queries - CSS: Cascading Style Sheets | MDN
Media queries allow you to apply CSS styles depending on a device's general type (such as print vs. screen) or other characteristics such...
Read more >
Variables and Expressions - Definition & Usage - AutoHotkey
Learn details about variables, expressions, operators, built-in variables and capacity and memory of variables.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found