vscode-shiki-bridge 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -194,7 +194,7 @@ async function buildThemeRegistration(contribution, registry, fileReader, Uri) {
194
194
  const themeRegistration = {
195
195
  name: id,
196
196
  displayName: contribution.label,
197
- settings: rawTheme.tokenColors,
197
+ settings: rawTheme.tokenColors ?? rawTheme.settings,
198
198
  colors: rawTheme.colors,
199
199
  semanticHighlighting: rawTheme.semanticHighlighting,
200
200
  semanticTokenColors: rawTheme.semanticTokenColors,
package/dist/index.js CHANGED
@@ -178,7 +178,7 @@ async function buildThemeRegistration(contribution, registry, fileReader, Uri) {
178
178
  const themeRegistration = {
179
179
  name: id,
180
180
  displayName: contribution.label,
181
- settings: rawTheme.tokenColors,
181
+ settings: rawTheme.tokenColors ?? rawTheme.settings,
182
182
  colors: rawTheme.colors,
183
183
  semanticHighlighting: rawTheme.semanticHighlighting,
184
184
  semanticTokenColors: rawTheme.semanticTokenColors,
package/dist/internals.js CHANGED
@@ -598,7 +598,7 @@ async function buildThemeRegistration(contribution, registry, fileReader, Uri) {
598
598
  const themeRegistration = {
599
599
  name: id,
600
600
  displayName: contribution.label,
601
- settings: rawTheme.tokenColors,
601
+ settings: rawTheme.tokenColors ?? rawTheme.settings,
602
602
  colors: rawTheme.colors,
603
603
  semanticHighlighting: rawTheme.semanticHighlighting,
604
604
  semanticTokenColors: rawTheme.semanticTokenColors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vscode-shiki-bridge",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Embed Shiki code blocks in VS Code, inheriting the user's themes and languages",
5
5
  "type": "module",
6
6
  "license": "MIT",