samdark / intellij-visual-studio-code-dark-plus

Visual Studio Code Dark Plus theme for JetBrains IDEs
https://plugins.jetbrains.com/plugin/12255-visual-studio-code-dark-plus-theme
BSD 3-Clause "New" or "Revised" License
138 stars 31 forks source link

Python varible theme is not matching VS Code #46

Closed zhiyaot closed 2 years ago

zhiyaot commented 2 years ago

What the issue is?

The theme for python in both CLion and PyCharm is not exactly matching VSCode

Screenshots

image ^^^ this is in CLion

image ^^^ in VSCode

Which is more concerning, or I suspect a bug from Jetbrain

image ^^^ This is what the setting page gives as a preview of the python code

image ^^^ Copied to the editor, notice that the light blue for local variable x is gone

How would you fix it?

I have no idea :(

Additional info

Q A
Plugin Version 2.5
IDE and version CLion 2021.3.2
Operating system Window 10, Ubuntu 20.04
samdark commented 2 years ago

Thanks for reporting. Would you please attach the file in question?

zhiyaot commented 2 years ago
import argparse
import logging
import pathlib
import sys
from datetime import date

if __name__ == "__main__":
    parser = argparse.ArgumentParser(description='bert_gen', prog='bert_gen')
    parser.add_argument("baseDir", help='Directory of the file_gen.tcl output')
    parser.add_argument("--log")
    parser.add_argument('--version', action='version', version='%(prog)s 1.0')
    args = parser.parse_args()

    logger = logging.getLogger('bert_gen')

    if sys.platform.startswith('win32'):
        print("Detected Windows System")

    elif sys.platform.startswith('linux'):
        print("hahha")
@decorator(param=1)
def f(x):
    """
    Syntax Highlighting Demo
    @param x Parameter

    Semantic highlighting:
    Generated spectrum to pick colors for local variables and parameters:
     Color#1 SC1.1 SC1.2 SC1.3 SC1.4 Color#2 SC2.1 SC2.2 SC2.3 SC2.4 Color#3
     Color#3 SC3.1 SC3.2 SC3.3 SC3.4 Color#4 SC4.1 SC4.2 SC4.3 SC4.4 Color#5
    """

    def nested_func(y):
        print(y + 1)

    s = ("Test", 2+3, {'a': 'b'}, f'{x!s:{"^10"}}')   # Comment
    f(s[0].lower())
    nested_func(42)

class Foo:
    tags: List[str]

    def __init__(self: Foo):
        byte_string: bytes = b'newline:\n also newline:\x0a'
        text_string = u"Cyrillic Я is \u042f. Oops: \u042g"
        self.make_sense(whatever=1)

    def make_sense(self, whatever):
        self.sense = whatever

x = len('abc')
print(f.__doc__)
samdark commented 2 years ago

Thanks. I can't promise I'll look into it anytime soon so anyone that has time and can help adjusting the color schema, you're very welcome.