Repository navigation
Replies: 6 comments
|
Thanks for the tight repro and the source pointers. Confirmed on current What happens today VS Code import is a UI-palette conversion. That matches the file header in Related work #6571 already tried to preserve Next Keep this open as an enhancement. A useful fix is three smaller slices: persist sanitized Optional short-term: mention the limitation in the import UI and Appearance docs so a successful import is not misleading. |
|
Happy to take a stab at this issue if contributions are accepted here. |
|
Just hit this too, applied a T3 theme but then opened a file to see the syntax was different than the shell theme. For example, set it to Nord, but then saw the inbuilt colours for code files, it would be nice to see the file syntax in the Nord colours |
|
+1, and one related ask: a way to choose the code highlighting theme on its own, without importing a whole VS Code theme. T3 already bundles the Shiki themes ( Either of these would cover it:
|
|
+1. I hit this while trying to make the diff panel look like GitHub's with a theme (T3 Code 0.1.10). Theme
Theme roles for the diff (added and removed rows, the line-number column, the word highlight), plus the code color choice asked for above, would cover it. |

Uh oh!
There was an error while loading. Please reload this page.
Importing a VS Code theme changes T3 Code's UI palette, but code keeps the built-in syntax colors. The import succeeds without indicating that the theme's syntax rules were discarded.
This is a gap in the existing theme-import behavior. When I import and select a VS Code theme, I expect its syntax highlighting to apply wherever T3 renders highlighted code.
Before submitting
Area
apps/web. Desktop shares the affected web renderers.
Steps to reproduce
For an unambiguous JSON example, import this theme:
{ "name": "Syntax import repro", "type": "dark", "colors": { "editor.background": "#101820", "editor.foreground": "#eeeeee" }, "tokenColors": [ { "scope": "keyword", "settings": { "foreground": "#ff00ff" } }, { "scope": "string", "settings": { "foreground": "#00ff00" } }, { "scope": "comment", "settings": { "foreground": "#ffff00" } } ] }Use this JavaScript snippet:
Expected behavior
The selected imported theme supplies syntax colors to highlighted code, including chat blocks, file previews and editing, diffs, PR code, and search snippets. In the example,
ifis magenta, the string is green, and the comment is yellow.Actual behavior
UI and code-background colors follow the imported palette, while syntax highlighting continues to use Pierre's built-in light or dark theme. Switching between imported dark themes does not change the syntax palette.
Source inspection identifies two breaks:
pierre-lightorpierre-dark. The shared syntax highlighter loads those themes.Impact
Cosmetic issue. Imported themes lose their syntax palette, which affects code readability and makes the successful import misleading.
Version or commit
Source inspected at
main @ 061543e9e5b54ec0048725c37d52fef2962df173.Environment and verification
Reported from use of T3 Code and investigated in the local source checkout. The minimal JSON example above is supplied for reproduction; it was not separately run in a fresh browser session during this investigation. The affected selection logic is shared by web and desktop and does not depend on the agent provider.
Workaround
No supported way found to make an imported theme supply syntax rules to these renderers. The theme editor's code background and foreground roles do not control individual syntax tokens.
All reactions