1

Migrated from VSCode to VSCodium because "Microsoft bad". Developing python applications seems to be missing some of the code colors like the modules in turquoise or local variables in light blue in the "Dark +" theme, visible in the comparison below:

enter image description here Left: VSCodium. Right: VSCode

Is the right style of code highlighting Microsoft only or am I missing an extension? I tried Manage>Settings>tokenColorCustomizations but the available types like comments, functions or keywords are not python specific, so doing it manually probably won't do the trick.

  • I think this is related to the language server. If you still have Code installed, you could check by switching `python.languageServer` from Pylance to Jedi. [Pylance is not supported in unofficial builds](https://reddit.com/r/linux/comments/k0s8qw/vs_code_developers_prevent_running_the_new/). – wjandrea Feb 04 '23 at 17:58
  • Related? [How can I get VS's python syntax highlighting in VS code?](/q/45291759/4518341) There's [an answer](/a/65166674/4518341) about changing the colours manually; that might help. – wjandrea Feb 04 '23 at 18:02
  • 1
    @wjandrea so VSCodium is unofficial? Unofficial as in not backed by a tech giant? But thanks for the info, I'll try out Jedi. – jake_asks_short_questions Feb 04 '23 at 21:19
  • Unofficial as in, not built by Microsoft. That's the whole point of VSCodium...? – wjandrea Feb 04 '23 at 22:59
  • What happens if you set `"editor.semanticHighlighting.enabled": false` in your VS Code settings? Does VS Code then appear the same as the VS Codium appearance? – starball Feb 12 '23 at 19:20
  • 1
    @user For me, that setting has no effect on Python syntax highlighting. (Oh yeah, I forgot to mention that before: I see the same thing as OP on Codium, and I'm using Jedi. Never used PyLance.) – wjandrea Feb 12 '23 at 19:56
  • To be clear, I believe Pylance adds the more detailed syntax highlighting on VSCode. Some of it seems to require introspection, like knowing that `os` is an imported name, but on Codium, Jedi doesn't seem to provide any of that, so you're stuck with basic TextMate-powered highlighting. That is, unless you want to do the [hack to allow Pylance](https://github.com/VSCodium/vscodium/issues/892#issuecomment-957850440). – wjandrea Feb 12 '23 at 20:09

2 Answers2

1

I successfully have the same syntax highlighting by installing vscode and python extension (with Pylance) and then:

rm -rf ~/.vscodium-server/extensions
cp -R ~/.vscode-server/extensions ~/.vscodium-server/extensions

You can then remove vscode :)

1

Pyright gives the same highlighting as Pylance in vscode and it is available in codium

LmarLoe
  • 11
  • 2