aura-theme icon indicating copy to clipboard operation
aura-theme copied to clipboard

Vscode lucks Python 3.10 higlights

Open Arison7 opened this issue 2 years ago • 6 comments

First, I would like to say that Aura is the best vscode theme out there. I am not 100% sure if that's an issue of a theme, but with different themes, it works just fine. To put it simple new functions from Python 3.10 are not being highlighted. image

best regards, Arison

Arison7 avatar Jul 06 '22 12:07 Arison7

Hi @Arison7 , thanks.

Could you please give me more details about this? I'm not a Python 3 programmer, so what functions are you talking about from that image? The match? I tried that snippet of code, and the other themes only highlight the "eventSource" part. Also, could you provide a screenshot using the theme that makes the highlight properly you are talking about?

The problem is: all the white text has the same scope, unfortunately I can do nothing about this, because if I change the source.python, it will change the color for all of source.python without distinction. Captura de Tela 2022-07-09 às 13 01 42

daltonmenezes avatar Jul 09 '22 16:07 daltonmenezes

So "match" is basically "switch" functionality for python added in 3.10. It supposed to be highlighted like this image with "case" and "match" being treated as functions (aura for reference) image And i think it was done through token type although to be fair I am not sure how the themes exactly works image

Arison7 avatar Jul 09 '22 18:07 Arison7

@Arison7 by default vscode doesn't have that keyword.control token in this context, probably you are using some extension that adds the python 3 support for these tokens... Could you please share the extensions you are using?

daltonmenezes avatar Jul 09 '22 19:07 daltonmenezes

@daltonmenezes sorry for the wait. I don't use any extension that could cause this effect. Furthermore proper highlighting works with a basic vscode theme image

Arison7 avatar Jul 11 '22 10:07 Arison7

@Arison7 what version of vscode are you using? the regular one or inside version?

daltonmenezes avatar Jul 11 '22 22:07 daltonmenezes

@daltonmenezes I actually needed to do some research about this topic. I didn't know such a thing as an insider version existed. I am using standard vs code.

Arison7 avatar Jul 17 '22 11:07 Arison7

Hi everyone! Something similar happened to me and I solved it with this parameter in settings.js issue_aura_theme

Then, my .py files accepted my modified colors because the inspect recognize the semantic token type issue_aura_theme_2

I hope this solve your problem @Arison7 ! And @daltonmenezes I want to than you for this theme, it's amazing and I love it 🤗

LeandroNardi96 avatar Aug 07 '22 03:08 LeandroNardi96

Thanks @LeandroNardi96 💜

For all folks who will read it, as the semantic highlighting option must be a personal choice to activate it, I'm closing this issue.

daltonmenezes avatar Aug 09 '22 22:08 daltonmenezes