Code Monkey home page Code Monkey logo

Comments (8)

usernamehw avatar usernamehw commented on May 25, 2024 1

No, I mean targeting the same scopes as all of the embedded vscode themes:

  1. "meta.embedded",
  2. "source.groovy.embedded"
  3. "meta.template.expression"

from vscode-theme-generator.

Tyriar avatar Tyriar commented on May 25, 2024

[] and {} don't actually appear to have assigned colors, adding this looks like it fixes it meta.brace.square, punctuation.definition.block. There are a lot of other brackets at least in the TS grammar that need to be covered

from vscode-theme-generator.

usernamehw avatar usernamehw commented on May 25, 2024

It's a known bug. It affects more that punctuation. I can't find the issue, but the way to fix it is to assign foreground color of each theme

like this:
https://github.com/Microsoft/vscode/blob/master/extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json#L58

or that:
https://github.com/Microsoft/vscode/blob/master/extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json#L390

from vscode-theme-generator.

Tyriar avatar Tyriar commented on May 25, 2024

Well foreground is being set:

image

It's just that the string scope is more specific so it overrides it. I think the only fix is to color all the brackets that could appear within an interpolated string.

from vscode-theme-generator.

Tyriar avatar Tyriar commented on May 25, 2024

Fixed, let me know if you find other similar cases

from vscode-theme-generator.

usernamehw avatar usernamehw commented on May 25, 2024

No, I mean assigning foreground of those scopes that I linked above with the same color as editor.foreground is the official way of fixing this bug.

But if you want to search for every character:

Dot: `text ${func.length} text`
Comma: `text ${[0, 1]} text`
Braces: `text ${() => 0} text`

Probably more...

from vscode-theme-generator.

Tyriar avatar Tyriar commented on May 25, 2024

You mean targeting meta.template.expression.ts meta.embedded.line.ts instead? Probably a better idea...

from vscode-theme-generator.

Tyriar avatar Tyriar commented on May 25, 2024

Thanks for the help @usernamehw 😃

from vscode-theme-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.