vscode-shiki-bridge 0.5.0 → 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 +1 -1
- package/dist/index.js +5 -3
- package/dist/internals.js +5 -3
- package/package.json +4 -5
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
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import { parse } from "fast-plist";
|
|
3
2
|
import { parse as parse$1 } from "jsonc-parser";
|
|
4
3
|
|
|
5
4
|
//#region rolldown:runtime
|
|
6
|
-
var __require = /* @__PURE__ */
|
|
5
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
6
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
8
|
+
});
|
|
7
9
|
|
|
8
10
|
//#endregion
|
|
9
11
|
//#region src/vscode-utils.ts
|
|
@@ -176,7 +178,7 @@ async function buildThemeRegistration(contribution, registry, fileReader, Uri) {
|
|
|
176
178
|
const themeRegistration = {
|
|
177
179
|
name: id,
|
|
178
180
|
displayName: contribution.label,
|
|
179
|
-
settings: rawTheme.tokenColors,
|
|
181
|
+
settings: rawTheme.tokenColors ?? rawTheme.settings,
|
|
180
182
|
colors: rawTheme.colors,
|
|
181
183
|
semanticHighlighting: rawTheme.semanticHighlighting,
|
|
182
184
|
semanticTokenColors: rawTheme.semanticTokenColors,
|
package/dist/internals.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import { parse } from "fast-plist";
|
|
3
2
|
import { parse as parse$1 } from "jsonc-parser";
|
|
4
3
|
|
|
5
4
|
//#region rolldown:runtime
|
|
6
|
-
var __require = /* @__PURE__ */
|
|
5
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
6
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
7
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
8
|
+
});
|
|
7
9
|
|
|
8
10
|
//#endregion
|
|
9
11
|
//#region src/vscode-utils.ts
|
|
@@ -596,7 +598,7 @@ async function buildThemeRegistration(contribution, registry, fileReader, Uri) {
|
|
|
596
598
|
const themeRegistration = {
|
|
597
599
|
name: id,
|
|
598
600
|
displayName: contribution.label,
|
|
599
|
-
settings: rawTheme.tokenColors,
|
|
601
|
+
settings: rawTheme.tokenColors ?? rawTheme.settings,
|
|
600
602
|
colors: rawTheme.colors,
|
|
601
603
|
semanticHighlighting: rawTheme.semanticHighlighting,
|
|
602
604
|
semanticTokenColors: rawTheme.semanticTokenColors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-shiki-bridge",
|
|
3
|
-
"version": "0.5.
|
|
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",
|
|
@@ -19,20 +19,19 @@
|
|
|
19
19
|
"files": [
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
|
-
"main": "./dist/index.
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
23
|
"module": "./dist/index.js",
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"exports": {
|
|
26
26
|
".": {
|
|
27
27
|
"types": "./dist/index.d.ts",
|
|
28
28
|
"development": "./src/index.ts",
|
|
29
|
-
"
|
|
30
|
-
"import": "./dist/index.js"
|
|
29
|
+
"default": "./dist/index.js"
|
|
31
30
|
},
|
|
32
31
|
"./internals": {
|
|
33
32
|
"types": "./dist/internals.d.ts",
|
|
34
33
|
"development": "./src/internals.ts",
|
|
35
|
-
"
|
|
34
|
+
"default": "./dist/internals.js"
|
|
36
35
|
},
|
|
37
36
|
"./package.json": "./package.json"
|
|
38
37
|
},
|