@codingame/monaco-vscode-api 1.69.11 → 1.69.13
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/polyfill.js +5 -3
- package/package.json +3 -4
package/dist/polyfill.js
CHANGED
|
@@ -7,7 +7,7 @@ import { mixin, equals, deepClone, deepFreeze } from 'monaco-editor/esm/vs/base/
|
|
|
7
7
|
import { RunOnceScheduler, timeout } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
8
8
|
import { show, hide, createStyleSheet } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
9
9
|
import { isNumber, isObject, isUndefinedOrNull } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
10
|
-
import { Color as Color$1 } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
10
|
+
import { Color as Color$1, RGBA as RGBA$1 } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
11
11
|
import { LanguageService as LanguageService$1 } from 'monaco-editor/esm/vs/editor/common/services/languageService.js';
|
|
12
12
|
import { E as Emitter, W as WorkspaceFolder, R as RawContextKey, N as NoOpNotification$1, s as shuffle } from './workspace.js';
|
|
13
13
|
import { LanguagesRegistry as LanguagesRegistry$1 } from 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
|
|
@@ -5454,13 +5454,15 @@ for (const key of Object.getOwnPropertyNames(VSBuffer)) {
|
|
|
5454
5454
|
polyfillPrototype(VSBuffer$1.prototype, VSBuffer.prototype, toMonacoVSBuffer, toVSCodeVSBuffer);
|
|
5455
5455
|
function toMonacoColor(value) {
|
|
5456
5456
|
if (value instanceof Color) {
|
|
5457
|
-
|
|
5457
|
+
const rgba = value.rgba;
|
|
5458
|
+
return new Color$1(new RGBA$1(rgba.r, rgba.g, rgba.g, rgba.a));
|
|
5458
5459
|
}
|
|
5459
5460
|
return value;
|
|
5460
5461
|
}
|
|
5461
5462
|
function toVSCodeColor(value) {
|
|
5462
5463
|
if (value instanceof Color$1) {
|
|
5463
|
-
|
|
5464
|
+
const rgba = value.rgba;
|
|
5465
|
+
return new Color(new RGBA(rgba.r, rgba.g, rgba.g, rgba.a));
|
|
5464
5466
|
}
|
|
5465
5467
|
return value;
|
|
5466
5468
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "1.69.
|
|
3
|
+
"version": "1.69.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -173,10 +173,9 @@
|
|
|
173
173
|
"typescript": "^4.7.4",
|
|
174
174
|
"zx": "^7.0.8"
|
|
175
175
|
},
|
|
176
|
-
"dependencies": {
|
|
177
|
-
"monaco-editor": "^0.34.0"
|
|
178
|
-
},
|
|
176
|
+
"dependencies": {},
|
|
179
177
|
"peerDependencies": {
|
|
178
|
+
"monaco-editor": "~0.34.0",
|
|
180
179
|
"vscode-textmate": "^7.0.1",
|
|
181
180
|
"vscode-oniguruma": "^1.6.2"
|
|
182
181
|
},
|