@codingame/monaco-vscode-api 1.69.11 → 1.69.12
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 +1 -1
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
|
}
|