modern-monaco 0.3.3 → 0.3.5
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/README.md +46 -6
- package/dist/core.mjs +3 -2
- package/dist/editor-core.mjs +9638 -4388
- package/dist/editor-worker.mjs +77 -77
- package/dist/index.mjs +8 -8
- package/dist/lsp/client.mjs +1 -1
- package/dist/lsp/css/setup.mjs +2 -2
- package/dist/lsp/css/worker.mjs +43 -43
- package/dist/lsp/html/setup.mjs +2 -1
- package/dist/lsp/html/worker.mjs +31 -31
- package/dist/lsp/json/setup.mjs +5 -3
- package/dist/lsp/json/worker.mjs +31 -31
- package/dist/lsp/typescript/libs.mjs +0 -1
- package/dist/lsp/typescript/setup.mjs +1 -1
- package/dist/lsp/typescript/worker.mjs +3 -3
- package/dist/shiki-wasm.mjs +1 -1
- package/dist/shiki.mjs +58 -56
- package/package.json +7 -5
- package/types/lsp.d.ts +33 -2
package/dist/editor-worker.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules
|
|
1
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/errors.js
|
|
2
2
|
var ErrorHandler = class {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.listeners = [];
|
|
@@ -89,7 +89,7 @@ var BugIndicatingError = class _BugIndicatingError extends Error {
|
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
// node_modules
|
|
92
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/assert.js
|
|
93
93
|
function assertNever(value, message = "Unreachable") {
|
|
94
94
|
throw new Error(message);
|
|
95
95
|
}
|
|
@@ -119,7 +119,7 @@ function checkAdjacentItems(items, predicate) {
|
|
|
119
119
|
return true;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
// node_modules
|
|
122
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/types.js
|
|
123
123
|
function isString(str) {
|
|
124
124
|
return typeof str === "string";
|
|
125
125
|
}
|
|
@@ -127,7 +127,7 @@ function isIterable(obj) {
|
|
|
127
127
|
return !!obj && typeof obj[Symbol.iterator] === "function";
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
// node_modules
|
|
130
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/iterator.js
|
|
131
131
|
var Iterable;
|
|
132
132
|
(function(Iterable2) {
|
|
133
133
|
function is(thing) {
|
|
@@ -299,7 +299,7 @@ var Iterable;
|
|
|
299
299
|
Iterable2.asyncToArrayFlat = asyncToArrayFlat;
|
|
300
300
|
})(Iterable || (Iterable = {}));
|
|
301
301
|
|
|
302
|
-
// node_modules
|
|
302
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/lifecycle.js
|
|
303
303
|
var TRACK_DISPOSABLES = false;
|
|
304
304
|
var disposableTracker = null;
|
|
305
305
|
function setDisposableTracker(tracker) {
|
|
@@ -504,7 +504,7 @@ var Disposable = class {
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
|
|
507
|
-
// node_modules
|
|
507
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/linkedList.js
|
|
508
508
|
var Node = class _Node {
|
|
509
509
|
static {
|
|
510
510
|
this.Undefined = new _Node(void 0);
|
|
@@ -614,7 +614,7 @@ var LinkedList = class {
|
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
616
|
|
|
617
|
-
// node_modules
|
|
617
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/stopwatch.js
|
|
618
618
|
var performanceNow = globalThis.performance.now.bind(globalThis.performance);
|
|
619
619
|
var StopWatch = class _StopWatch {
|
|
620
620
|
static create(highResolution) {
|
|
@@ -640,7 +640,7 @@ var StopWatch = class _StopWatch {
|
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
|
|
643
|
-
// node_modules
|
|
643
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/event.js
|
|
644
644
|
var _enableDisposeWithListenerWarning = false;
|
|
645
645
|
var _enableSnapshotPotentialLeakWarning = false;
|
|
646
646
|
var Event;
|
|
@@ -1376,7 +1376,7 @@ var EventDeliveryQueuePrivate = class {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
};
|
|
1378
1378
|
|
|
1379
|
-
// node_modules
|
|
1379
|
+
// node_modules/monaco-editor-core/esm/vs/nls.messages.js
|
|
1380
1380
|
function getNLSMessages() {
|
|
1381
1381
|
return globalThis._VSCODE_NLS_MESSAGES;
|
|
1382
1382
|
}
|
|
@@ -1384,7 +1384,7 @@ function getNLSLanguage() {
|
|
|
1384
1384
|
return globalThis._VSCODE_NLS_LANGUAGE;
|
|
1385
1385
|
}
|
|
1386
1386
|
|
|
1387
|
-
// node_modules
|
|
1387
|
+
// node_modules/monaco-editor-core/esm/vs/nls.js
|
|
1388
1388
|
var isPseudo = getNLSLanguage() === "pseudo" || typeof document !== "undefined" && document.location && typeof document.location.hash === "string" && document.location.hash.indexOf("pseudo=true") >= 0;
|
|
1389
1389
|
function _format(message, args) {
|
|
1390
1390
|
let result;
|
|
@@ -1425,7 +1425,7 @@ function lookupMessage(index, fallback) {
|
|
|
1425
1425
|
return message;
|
|
1426
1426
|
}
|
|
1427
1427
|
|
|
1428
|
-
// node_modules
|
|
1428
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/platform.js
|
|
1429
1429
|
var LANGUAGE_DEFAULT = "en";
|
|
1430
1430
|
var _isWindows = false;
|
|
1431
1431
|
var _isMacintosh = false;
|
|
@@ -1533,7 +1533,7 @@ var isSafari = !!(!isChrome && (userAgent && userAgent.indexOf("Safari") >= 0));
|
|
|
1533
1533
|
var isEdge = !!(userAgent && userAgent.indexOf("Edg/") >= 0);
|
|
1534
1534
|
var isAndroid = !!(userAgent && userAgent.indexOf("Android") >= 0);
|
|
1535
1535
|
|
|
1536
|
-
// node_modules
|
|
1536
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/cache.js
|
|
1537
1537
|
function identity(t) {
|
|
1538
1538
|
return t;
|
|
1539
1539
|
}
|
|
@@ -1559,7 +1559,7 @@ var LRUCachedFunction = class {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
};
|
|
1561
1561
|
|
|
1562
|
-
// node_modules
|
|
1562
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/lazy.js
|
|
1563
1563
|
var LazyValueState;
|
|
1564
1564
|
(function(LazyValueState2) {
|
|
1565
1565
|
LazyValueState2[LazyValueState2["Uninitialized"] = 0] = "Uninitialized";
|
|
@@ -1603,7 +1603,7 @@ var Lazy = class {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
};
|
|
1605
1605
|
|
|
1606
|
-
// node_modules
|
|
1606
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/strings.js
|
|
1607
1607
|
function escapeRegExpCharacters(value) {
|
|
1608
1608
|
return value.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g, "\\$&");
|
|
1609
1609
|
}
|
|
@@ -1835,7 +1835,7 @@ var InvisibleCharacters = class _InvisibleCharacters {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
};
|
|
1837
1837
|
|
|
1838
|
-
// node_modules
|
|
1838
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/worker/webWorker.js
|
|
1839
1839
|
var DEFAULT_CHANNEL = "default";
|
|
1840
1840
|
var INITIALIZE = "$initialize";
|
|
1841
1841
|
var RequestMessage = class {
|
|
@@ -2114,7 +2114,7 @@ var WebWorkerServer = class {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
};
|
|
2116
2116
|
|
|
2117
|
-
// node_modules
|
|
2117
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/worker/webWorkerBootstrap.js
|
|
2118
2118
|
var initialized = false;
|
|
2119
2119
|
function initialize(factory) {
|
|
2120
2120
|
if (initialized) {
|
|
@@ -2128,7 +2128,7 @@ function initialize(factory) {
|
|
|
2128
2128
|
return webWorkerServer;
|
|
2129
2129
|
}
|
|
2130
2130
|
|
|
2131
|
-
// node_modules
|
|
2131
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/diff/diffChange.js
|
|
2132
2132
|
var DiffChange = class {
|
|
2133
2133
|
/**
|
|
2134
2134
|
* Constructs a new DiffChange with the given sequence information
|
|
@@ -2154,7 +2154,7 @@ var DiffChange = class {
|
|
|
2154
2154
|
}
|
|
2155
2155
|
};
|
|
2156
2156
|
|
|
2157
|
-
// node_modules
|
|
2157
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/buffer.js
|
|
2158
2158
|
var hasBuffer = typeof Buffer !== "undefined";
|
|
2159
2159
|
var indexOfTable = new Lazy(() => new Uint8Array(256));
|
|
2160
2160
|
var textDecoder;
|
|
@@ -2196,7 +2196,7 @@ function encodeHex({ buffer }) {
|
|
|
2196
2196
|
return result;
|
|
2197
2197
|
}
|
|
2198
2198
|
|
|
2199
|
-
// node_modules
|
|
2199
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/hash.js
|
|
2200
2200
|
function numberHash(val, initialHashVal) {
|
|
2201
2201
|
return (initialHashVal << 5) - initialHashVal + val | 0;
|
|
2202
2202
|
}
|
|
@@ -2386,7 +2386,7 @@ var StringSHA1 = class _StringSHA1 {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
};
|
|
2388
2388
|
|
|
2389
|
-
// node_modules
|
|
2389
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/diff/diff.js
|
|
2390
2390
|
var StringDiffSequence = class {
|
|
2391
2391
|
constructor(source) {
|
|
2392
2392
|
this.source = source;
|
|
@@ -3124,7 +3124,7 @@ var LcsDiff = class _LcsDiff {
|
|
|
3124
3124
|
};
|
|
3125
3125
|
var precomputedEqualityArray = new Uint32Array(65536);
|
|
3126
3126
|
|
|
3127
|
-
// node_modules
|
|
3127
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/position.js
|
|
3128
3128
|
var Position = class _Position {
|
|
3129
3129
|
constructor(lineNumber, column) {
|
|
3130
3130
|
this.lineNumber = lineNumber;
|
|
@@ -3253,7 +3253,7 @@ var Position = class _Position {
|
|
|
3253
3253
|
}
|
|
3254
3254
|
};
|
|
3255
3255
|
|
|
3256
|
-
// node_modules
|
|
3256
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/range.js
|
|
3257
3257
|
var Range = class _Range {
|
|
3258
3258
|
constructor(startLineNumber, startColumn, endLineNumber, endColumn) {
|
|
3259
3259
|
if (startLineNumber > endLineNumber || startLineNumber === endLineNumber && startColumn > endColumn) {
|
|
@@ -3639,7 +3639,7 @@ var Range = class _Range {
|
|
|
3639
3639
|
}
|
|
3640
3640
|
};
|
|
3641
3641
|
|
|
3642
|
-
// node_modules
|
|
3642
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/uint.js
|
|
3643
3643
|
function toUint8(v) {
|
|
3644
3644
|
if (v < 0) {
|
|
3645
3645
|
return 0;
|
|
@@ -3659,7 +3659,7 @@ function toUint32(v) {
|
|
|
3659
3659
|
return v | 0;
|
|
3660
3660
|
}
|
|
3661
3661
|
|
|
3662
|
-
// node_modules
|
|
3662
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/characterClassifier.js
|
|
3663
3663
|
var CharacterClassifier = class _CharacterClassifier {
|
|
3664
3664
|
constructor(_defaultValue) {
|
|
3665
3665
|
const defaultValue = toUint8(_defaultValue);
|
|
@@ -3693,7 +3693,7 @@ var CharacterClassifier = class _CharacterClassifier {
|
|
|
3693
3693
|
}
|
|
3694
3694
|
};
|
|
3695
3695
|
|
|
3696
|
-
// node_modules
|
|
3696
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/languages/linkComputer.js
|
|
3697
3697
|
var Uint8Matrix = class {
|
|
3698
3698
|
constructor(rows, cols, defaultValue) {
|
|
3699
3699
|
const data = new Uint8Array(rows * cols);
|
|
@@ -4055,7 +4055,7 @@ function computeLinks(model) {
|
|
|
4055
4055
|
return LinkComputer.computeLinks(model);
|
|
4056
4056
|
}
|
|
4057
4057
|
|
|
4058
|
-
// node_modules
|
|
4058
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/languages/supports/inplaceReplaceSupport.js
|
|
4059
4059
|
var BasicInplaceReplace = class _BasicInplaceReplace {
|
|
4060
4060
|
constructor() {
|
|
4061
4061
|
this._defaultValueSet = [
|
|
@@ -4136,7 +4136,7 @@ var BasicInplaceReplace = class _BasicInplaceReplace {
|
|
|
4136
4136
|
}
|
|
4137
4137
|
};
|
|
4138
4138
|
|
|
4139
|
-
// node_modules
|
|
4139
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/cancellation.js
|
|
4140
4140
|
var shortcutEvent = Object.freeze(function(callback, context) {
|
|
4141
4141
|
const handle = setTimeout(callback.bind(context), 0);
|
|
4142
4142
|
return { dispose() {
|
|
@@ -4232,7 +4232,7 @@ var CancellationTokenSource = class {
|
|
|
4232
4232
|
}
|
|
4233
4233
|
};
|
|
4234
4234
|
|
|
4235
|
-
// node_modules
|
|
4235
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/keyCodes.js
|
|
4236
4236
|
var KeyCodeStrMap = class {
|
|
4237
4237
|
constructor() {
|
|
4238
4238
|
this._keyCodeToStr = [];
|
|
@@ -4584,7 +4584,7 @@ function KeyChord(firstPart, secondPart) {
|
|
|
4584
4584
|
return (firstPart | chordPart) >>> 0;
|
|
4585
4585
|
}
|
|
4586
4586
|
|
|
4587
|
-
// node_modules
|
|
4587
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/process.js
|
|
4588
4588
|
var safeProcess;
|
|
4589
4589
|
var vscodeGlobal = globalThis.vscode;
|
|
4590
4590
|
if (typeof vscodeGlobal !== "undefined" && typeof vscodeGlobal.process !== "undefined") {
|
|
@@ -4640,7 +4640,7 @@ var cwd = safeProcess.cwd;
|
|
|
4640
4640
|
var env = safeProcess.env;
|
|
4641
4641
|
var platform = safeProcess.platform;
|
|
4642
4642
|
|
|
4643
|
-
// node_modules
|
|
4643
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/path.js
|
|
4644
4644
|
var CHAR_UPPERCASE_A = 65;
|
|
4645
4645
|
var CHAR_LOWERCASE_A = 97;
|
|
4646
4646
|
var CHAR_UPPERCASE_Z = 90;
|
|
@@ -5734,7 +5734,7 @@ var basename = platformIsWin32 ? win32.basename : posix.basename;
|
|
|
5734
5734
|
var extname = platformIsWin32 ? win32.extname : posix.extname;
|
|
5735
5735
|
var sep = platformIsWin32 ? win32.sep : posix.sep;
|
|
5736
5736
|
|
|
5737
|
-
// node_modules
|
|
5737
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/uri.js
|
|
5738
5738
|
var _schemePattern = /^\w[\w\d+.-]*$/;
|
|
5739
5739
|
var _singleSlashStart = /^\//;
|
|
5740
5740
|
var _doubleSlashStart = /^\/\//;
|
|
@@ -6267,7 +6267,7 @@ function percentDecode(str) {
|
|
|
6267
6267
|
return str.replace(_rEncodedAsHex, (match) => decodeURIComponentGraceful(match));
|
|
6268
6268
|
}
|
|
6269
6269
|
|
|
6270
|
-
// node_modules
|
|
6270
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/selection.js
|
|
6271
6271
|
var Selection = class _Selection extends Range {
|
|
6272
6272
|
constructor(selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn) {
|
|
6273
6273
|
super(selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn);
|
|
@@ -6393,7 +6393,7 @@ var Selection = class _Selection extends Range {
|
|
|
6393
6393
|
}
|
|
6394
6394
|
};
|
|
6395
6395
|
|
|
6396
|
-
// node_modules
|
|
6396
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/codiconsUtil.js
|
|
6397
6397
|
var _codiconFontCharacters = /* @__PURE__ */ Object.create(null);
|
|
6398
6398
|
function register(id, fontCharacter) {
|
|
6399
6399
|
if (isString(fontCharacter)) {
|
|
@@ -6407,7 +6407,7 @@ function register(id, fontCharacter) {
|
|
|
6407
6407
|
return { id };
|
|
6408
6408
|
}
|
|
6409
6409
|
|
|
6410
|
-
// node_modules
|
|
6410
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/codiconsLibrary.js
|
|
6411
6411
|
var codiconsLibrary = {
|
|
6412
6412
|
add: register("add", 6e4),
|
|
6413
6413
|
plus: register("plus", 6e4),
|
|
@@ -7040,7 +7040,7 @@ var codiconsLibrary = {
|
|
|
7040
7040
|
terminalGitBash: register("terminal-git-bash", 60529)
|
|
7041
7041
|
};
|
|
7042
7042
|
|
|
7043
|
-
// node_modules
|
|
7043
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/codicons.js
|
|
7044
7044
|
var codiconsDerived = {
|
|
7045
7045
|
dialogError: register("dialog-error", "error"),
|
|
7046
7046
|
dialogWarning: register("dialog-warning", "warning"),
|
|
@@ -7077,7 +7077,7 @@ var Codicon = {
|
|
|
7077
7077
|
...codiconsDerived
|
|
7078
7078
|
};
|
|
7079
7079
|
|
|
7080
|
-
// node_modules
|
|
7080
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/tokenizationRegistry.js
|
|
7081
7081
|
var TokenizationRegistry = class {
|
|
7082
7082
|
constructor() {
|
|
7083
7083
|
this._tokenizationSupports = /* @__PURE__ */ new Map();
|
|
@@ -7194,7 +7194,7 @@ var TokenizationSupportFactoryData = class extends Disposable {
|
|
|
7194
7194
|
}
|
|
7195
7195
|
};
|
|
7196
7196
|
|
|
7197
|
-
// node_modules
|
|
7197
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/languages.js
|
|
7198
7198
|
var Token = class {
|
|
7199
7199
|
constructor(offset, type, language) {
|
|
7200
7200
|
this.offset = offset;
|
|
@@ -7862,7 +7862,7 @@ var InlayHintKind;
|
|
|
7862
7862
|
})(InlayHintKind || (InlayHintKind = {}));
|
|
7863
7863
|
var TokenizationRegistry2 = new TokenizationRegistry();
|
|
7864
7864
|
|
|
7865
|
-
// node_modules
|
|
7865
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/standalone/standaloneEnums.js
|
|
7866
7866
|
var AccessibilitySupport;
|
|
7867
7867
|
(function(AccessibilitySupport2) {
|
|
7868
7868
|
AccessibilitySupport2[AccessibilitySupport2["Unknown"] = 0] = "Unknown";
|
|
@@ -8515,7 +8515,7 @@ var WrappingIndent;
|
|
|
8515
8515
|
WrappingIndent2[WrappingIndent2["DeepIndent"] = 3] = "DeepIndent";
|
|
8516
8516
|
})(WrappingIndent || (WrappingIndent = {}));
|
|
8517
8517
|
|
|
8518
|
-
// node_modules
|
|
8518
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/services/editorBaseApi.js
|
|
8519
8519
|
var KeyMod = class {
|
|
8520
8520
|
static {
|
|
8521
8521
|
this.CtrlCmd = 2048;
|
|
@@ -8554,7 +8554,7 @@ function createMonacoBaseAPI() {
|
|
|
8554
8554
|
};
|
|
8555
8555
|
}
|
|
8556
8556
|
|
|
8557
|
-
// node_modules
|
|
8557
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/map.js
|
|
8558
8558
|
var _a;
|
|
8559
8559
|
var _b;
|
|
8560
8560
|
var _c;
|
|
@@ -9097,10 +9097,10 @@ var SetMap = class {
|
|
|
9097
9097
|
}
|
|
9098
9098
|
};
|
|
9099
9099
|
|
|
9100
|
-
// node_modules
|
|
9100
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/wordCharacterClassifier.js
|
|
9101
9101
|
var wordClassifierCache = new LRUCache(10);
|
|
9102
9102
|
|
|
9103
|
-
// node_modules
|
|
9103
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/model.js
|
|
9104
9104
|
var OverviewRulerLane2;
|
|
9105
9105
|
(function(OverviewRulerLane3) {
|
|
9106
9106
|
OverviewRulerLane3[OverviewRulerLane3["Left"] = 1] = "Left";
|
|
@@ -9127,7 +9127,7 @@ var InjectedTextCursorStops2;
|
|
|
9127
9127
|
InjectedTextCursorStops3[InjectedTextCursorStops3["None"] = 3] = "None";
|
|
9128
9128
|
})(InjectedTextCursorStops2 || (InjectedTextCursorStops2 = {}));
|
|
9129
9129
|
|
|
9130
|
-
// node_modules
|
|
9130
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/model/textModelSearch.js
|
|
9131
9131
|
function isMultilineRegexSource(searchString) {
|
|
9132
9132
|
if (!searchString || searchString.length === 0) {
|
|
9133
9133
|
return false;
|
|
@@ -9237,7 +9237,7 @@ var Searcher = class {
|
|
|
9237
9237
|
}
|
|
9238
9238
|
};
|
|
9239
9239
|
|
|
9240
|
-
// node_modules
|
|
9240
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/wordHelper.js
|
|
9241
9241
|
var USUAL_WORD_SEPARATORS = "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";
|
|
9242
9242
|
function createWordRegExp(allowInWords = "") {
|
|
9243
9243
|
let source = "(-?\\d*\\.\\d\\w*)|([^";
|
|
@@ -9338,7 +9338,7 @@ function _findRegexMatchEnclosingPosition(wordDefinition, text, pos, stopPos) {
|
|
|
9338
9338
|
return null;
|
|
9339
9339
|
}
|
|
9340
9340
|
|
|
9341
|
-
// node_modules
|
|
9341
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/services/unicodeTextModelHighlighter.js
|
|
9342
9342
|
var UnicodeTextModelHighlighter = class {
|
|
9343
9343
|
static computeUnicodeHighlights(model, options, range) {
|
|
9344
9344
|
const startLine = range ? range.startLineNumber : 1;
|
|
@@ -9514,7 +9514,7 @@ function isAllowedInvisibleCharacter(character) {
|
|
|
9514
9514
|
return character === " " || character === "\n" || character === " ";
|
|
9515
9515
|
}
|
|
9516
9516
|
|
|
9517
|
-
// node_modules
|
|
9517
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/linesDiffComputer.js
|
|
9518
9518
|
var LinesDiff = class {
|
|
9519
9519
|
constructor(changes, moves, hitTimeout) {
|
|
9520
9520
|
this.changes = changes;
|
|
@@ -9529,7 +9529,7 @@ var MovedText = class {
|
|
|
9529
9529
|
}
|
|
9530
9530
|
};
|
|
9531
9531
|
|
|
9532
|
-
// node_modules
|
|
9532
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/arrays.js
|
|
9533
9533
|
function equals2(one, other, itemEquals = (a, b) => a === b) {
|
|
9534
9534
|
if (one === other) {
|
|
9535
9535
|
return true;
|
|
@@ -9655,7 +9655,7 @@ var CallbackIterable = class _CallbackIterable {
|
|
|
9655
9655
|
}
|
|
9656
9656
|
};
|
|
9657
9657
|
|
|
9658
|
-
// node_modules
|
|
9658
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/ranges/offsetRange.js
|
|
9659
9659
|
var OffsetRange = class _OffsetRange {
|
|
9660
9660
|
static fromTo(start2, endExclusive) {
|
|
9661
9661
|
return new _OffsetRange(start2, endExclusive);
|
|
@@ -9816,7 +9816,7 @@ var OffsetRange = class _OffsetRange {
|
|
|
9816
9816
|
}
|
|
9817
9817
|
};
|
|
9818
9818
|
|
|
9819
|
-
// node_modules
|
|
9819
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/arraysFind.js
|
|
9820
9820
|
function findLastMonotonous(array, predicate) {
|
|
9821
9821
|
const idx = findLastIdxMonotonous(array, predicate);
|
|
9822
9822
|
return idx === -1 ? void 0 : array[idx];
|
|
@@ -9880,7 +9880,7 @@ var MonotonousArray = class _MonotonousArray {
|
|
|
9880
9880
|
}
|
|
9881
9881
|
};
|
|
9882
9882
|
|
|
9883
|
-
// node_modules
|
|
9883
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/ranges/lineRange.js
|
|
9884
9884
|
var LineRange = class _LineRange {
|
|
9885
9885
|
static ofLength(startLineNumber, length) {
|
|
9886
9886
|
return new _LineRange(startLineNumber, startLineNumber + length);
|
|
@@ -10157,7 +10157,7 @@ var LineRangeSet = class _LineRangeSet {
|
|
|
10157
10157
|
}
|
|
10158
10158
|
};
|
|
10159
10159
|
|
|
10160
|
-
// node_modules
|
|
10160
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/text/textLength.js
|
|
10161
10161
|
var TextLength = class _TextLength {
|
|
10162
10162
|
static {
|
|
10163
10163
|
this.zero = new _TextLength(0, 0);
|
|
@@ -10230,7 +10230,7 @@ var TextLength = class _TextLength {
|
|
|
10230
10230
|
}
|
|
10231
10231
|
};
|
|
10232
10232
|
|
|
10233
|
-
// node_modules
|
|
10233
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/text/positionToOffsetImpl.js
|
|
10234
10234
|
var PositionOffsetTransformerBase = class {
|
|
10235
10235
|
getOffsetRange(range) {
|
|
10236
10236
|
return new OffsetRange(this.getOffset(range.getStartPosition()), this.getOffset(range.getEndPosition()));
|
|
@@ -10316,7 +10316,7 @@ var PositionOffsetTransformer = class extends PositionOffsetTransformerBase {
|
|
|
10316
10316
|
}
|
|
10317
10317
|
};
|
|
10318
10318
|
|
|
10319
|
-
// node_modules
|
|
10319
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/text/abstractText.js
|
|
10320
10320
|
var AbstractText = class {
|
|
10321
10321
|
constructor() {
|
|
10322
10322
|
this._transformer = void 0;
|
|
@@ -10378,7 +10378,7 @@ var ArrayText = class extends LineBasedText {
|
|
|
10378
10378
|
}
|
|
10379
10379
|
};
|
|
10380
10380
|
|
|
10381
|
-
// node_modules
|
|
10381
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/core/edits/textEdit.js
|
|
10382
10382
|
var TextReplacement = class _TextReplacement {
|
|
10383
10383
|
static joinReplacements(replacements, initialValue) {
|
|
10384
10384
|
if (replacements.length === 0) {
|
|
@@ -10451,7 +10451,7 @@ var TextReplacement = class _TextReplacement {
|
|
|
10451
10451
|
}
|
|
10452
10452
|
};
|
|
10453
10453
|
|
|
10454
|
-
// node_modules
|
|
10454
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/rangeMapping.js
|
|
10455
10455
|
var LineRangeMapping = class _LineRangeMapping {
|
|
10456
10456
|
static inverse(mapping, originalLineCount, modifiedLineCount) {
|
|
10457
10457
|
const result = [];
|
|
@@ -10633,7 +10633,7 @@ function getLineRangeMapping(rangeMapping, originalLines, modifiedLines) {
|
|
|
10633
10633
|
return new DetailedLineRangeMapping(originalLineRange, modifiedLineRange, [rangeMapping]);
|
|
10634
10634
|
}
|
|
10635
10635
|
|
|
10636
|
-
// node_modules
|
|
10636
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/legacyLinesDiffComputer.js
|
|
10637
10637
|
var MINIMUM_MATCHING_CHARACTER_LENGTH = 3;
|
|
10638
10638
|
var LegacyLinesDiffComputer = class {
|
|
10639
10639
|
computeDiff(originalLines, modifiedLines, options) {
|
|
@@ -11052,7 +11052,7 @@ function createContinueProcessingPredicate(maximumRuntime) {
|
|
|
11052
11052
|
};
|
|
11053
11053
|
}
|
|
11054
11054
|
|
|
11055
|
-
// node_modules
|
|
11055
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js
|
|
11056
11056
|
var DiffAlgorithmResult = class _DiffAlgorithmResult {
|
|
11057
11057
|
static trivial(seq1, seq2) {
|
|
11058
11058
|
return new _DiffAlgorithmResult([new SequenceDiff(OffsetRange.ofLength(seq1.length), OffsetRange.ofLength(seq2.length))], false);
|
|
@@ -11184,7 +11184,7 @@ var DateTimeout = class {
|
|
|
11184
11184
|
}
|
|
11185
11185
|
};
|
|
11186
11186
|
|
|
11187
|
-
// node_modules
|
|
11187
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/utils.js
|
|
11188
11188
|
var Array2D = class {
|
|
11189
11189
|
constructor(width, height) {
|
|
11190
11190
|
this.width = width;
|
|
@@ -11244,7 +11244,7 @@ var LineRangeFragment = class _LineRangeFragment {
|
|
|
11244
11244
|
}
|
|
11245
11245
|
};
|
|
11246
11246
|
|
|
11247
|
-
// node_modules
|
|
11247
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/dynamicProgrammingDiffing.js
|
|
11248
11248
|
var DynamicProgrammingDiffing = class {
|
|
11249
11249
|
compute(sequence1, sequence2, timeout = InfiniteTimeout.instance, equalityScore) {
|
|
11250
11250
|
if (sequence1.length === 0 || sequence2.length === 0) {
|
|
@@ -11320,7 +11320,7 @@ var DynamicProgrammingDiffing = class {
|
|
|
11320
11320
|
}
|
|
11321
11321
|
};
|
|
11322
11322
|
|
|
11323
|
-
// node_modules
|
|
11323
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/myersDiffAlgorithm.js
|
|
11324
11324
|
var MyersDiffAlgorithm = class {
|
|
11325
11325
|
compute(seq1, seq2, timeout = InfiniteTimeout.instance) {
|
|
11326
11326
|
if (seq1.length === 0 || seq2.length === 0) {
|
|
@@ -11452,7 +11452,7 @@ var FastArrayNegativeIndices = class {
|
|
|
11452
11452
|
}
|
|
11453
11453
|
};
|
|
11454
11454
|
|
|
11455
|
-
// node_modules
|
|
11455
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/linesSliceCharSequence.js
|
|
11456
11456
|
var LinesSliceCharSequence = class {
|
|
11457
11457
|
constructor(lines, range, considerWhitespaceChanges) {
|
|
11458
11458
|
this.lines = lines;
|
|
@@ -11655,7 +11655,7 @@ function getCategory(charCode) {
|
|
|
11655
11655
|
}
|
|
11656
11656
|
}
|
|
11657
11657
|
|
|
11658
|
-
// node_modules
|
|
11658
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/computeMovedLines.js
|
|
11659
11659
|
function computeMovedLines(changes, originalLines, modifiedLines, hashedOriginalLines, hashedModifiedLines, timeout) {
|
|
11660
11660
|
let { moves, excludedChanges } = computeMovesFromSimpleDeletionsToSimpleInsertions(changes, originalLines, modifiedLines, timeout);
|
|
11661
11661
|
if (!timeout.isValid()) {
|
|
@@ -11881,7 +11881,7 @@ function removeMovesInSameDiff(changes, moves) {
|
|
|
11881
11881
|
return moves;
|
|
11882
11882
|
}
|
|
11883
11883
|
|
|
11884
|
-
// node_modules
|
|
11884
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/heuristicSequenceOptimizations.js
|
|
11885
11885
|
function optimizeSequenceDiffs(sequence1, sequence2, sequenceDiffs) {
|
|
11886
11886
|
let result = sequenceDiffs;
|
|
11887
11887
|
result = joinSequenceDiffsByShifting(sequence1, sequence2, result);
|
|
@@ -12189,7 +12189,7 @@ function removeVeryShortMatchingTextBetweenLongDiffs(sequence1, sequence2, seque
|
|
|
12189
12189
|
return newDiffs;
|
|
12190
12190
|
}
|
|
12191
12191
|
|
|
12192
|
-
// node_modules
|
|
12192
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/lineSequence.js
|
|
12193
12193
|
var LineSequence2 = class {
|
|
12194
12194
|
constructor(trimmedHash, lines) {
|
|
12195
12195
|
this.trimmedHash = trimmedHash;
|
|
@@ -12221,7 +12221,7 @@ function getIndentation(str) {
|
|
|
12221
12221
|
return i;
|
|
12222
12222
|
}
|
|
12223
12223
|
|
|
12224
|
-
// node_modules
|
|
12224
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js
|
|
12225
12225
|
var DefaultLinesDiffComputer = class {
|
|
12226
12226
|
constructor() {
|
|
12227
12227
|
this.dynamicProgrammingDiffing = new DynamicProgrammingDiffing();
|
|
@@ -12400,13 +12400,13 @@ function toLineRangeMapping(sequenceDiff) {
|
|
|
12400
12400
|
return new LineRangeMapping(new LineRange(sequenceDiff.seq1Range.start + 1, sequenceDiff.seq1Range.endExclusive + 1), new LineRange(sequenceDiff.seq2Range.start + 1, sequenceDiff.seq2Range.endExclusive + 1));
|
|
12401
12401
|
}
|
|
12402
12402
|
|
|
12403
|
-
// node_modules
|
|
12403
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/diff/linesDiffComputers.js
|
|
12404
12404
|
var linesDiffComputers = {
|
|
12405
12405
|
getLegacy: () => new LegacyLinesDiffComputer(),
|
|
12406
12406
|
getDefault: () => new DefaultLinesDiffComputer()
|
|
12407
12407
|
};
|
|
12408
12408
|
|
|
12409
|
-
// node_modules
|
|
12409
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/color.js
|
|
12410
12410
|
function roundFloat(number, decimalPoints) {
|
|
12411
12411
|
const decimal = Math.pow(10, decimalPoints);
|
|
12412
12412
|
return Math.round(number * decimal) / decimal;
|
|
@@ -13221,7 +13221,7 @@ var Color = class _Color {
|
|
|
13221
13221
|
})(Format = Color2.Format || (Color2.Format = {}));
|
|
13222
13222
|
})(Color || (Color = {}));
|
|
13223
13223
|
|
|
13224
|
-
// node_modules
|
|
13224
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/languages/defaultDocumentColorsComputer.js
|
|
13225
13225
|
function _parseCaptureGroups(captureGroups) {
|
|
13226
13226
|
const values = [];
|
|
13227
13227
|
for (const captureGroup of captureGroups) {
|
|
@@ -13342,7 +13342,7 @@ function computeDefaultDocumentColors(model) {
|
|
|
13342
13342
|
return computeColors(model);
|
|
13343
13343
|
}
|
|
13344
13344
|
|
|
13345
|
-
// node_modules
|
|
13345
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/services/findSectionHeaders.js
|
|
13346
13346
|
var trimDashesRegex = /^-+|-+$/g;
|
|
13347
13347
|
var CHUNK_SIZE = 100;
|
|
13348
13348
|
var MAX_SECTION_LINES = 5;
|
|
@@ -13442,10 +13442,10 @@ function getHeaderText(text) {
|
|
|
13442
13442
|
return { text, hasSeparatorLine };
|
|
13443
13443
|
}
|
|
13444
13444
|
|
|
13445
|
-
// node_modules
|
|
13445
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/symbols.js
|
|
13446
13446
|
var MicrotaskDelay = Symbol("MicrotaskDelay");
|
|
13447
13447
|
|
|
13448
|
-
// node_modules
|
|
13448
|
+
// node_modules/monaco-editor-core/esm/vs/base/common/async.js
|
|
13449
13449
|
var runWhenGlobalIdle;
|
|
13450
13450
|
var _runWhenIdle;
|
|
13451
13451
|
(function() {
|
|
@@ -13714,7 +13714,7 @@ var AsyncIterableProducer = class _AsyncIterableProducer {
|
|
|
13714
13714
|
};
|
|
13715
13715
|
var AsyncReaderEndOfStream = Symbol("AsyncReaderEndOfStream");
|
|
13716
13716
|
|
|
13717
|
-
// node_modules
|
|
13717
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/model/prefixSumComputer.js
|
|
13718
13718
|
var PrefixSumComputer = class {
|
|
13719
13719
|
constructor(values) {
|
|
13720
13720
|
this.values = values;
|
|
@@ -13850,7 +13850,7 @@ var PrefixSumIndexOfResult = class {
|
|
|
13850
13850
|
}
|
|
13851
13851
|
};
|
|
13852
13852
|
|
|
13853
|
-
// node_modules
|
|
13853
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/model/mirrorTextModel.js
|
|
13854
13854
|
var MirrorTextModel = class {
|
|
13855
13855
|
constructor(uri, lines, eol, versionId) {
|
|
13856
13856
|
this._uri = uri;
|
|
@@ -13941,7 +13941,7 @@ var MirrorTextModel = class {
|
|
|
13941
13941
|
}
|
|
13942
13942
|
};
|
|
13943
13943
|
|
|
13944
|
-
// node_modules
|
|
13944
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/services/textModelSync/textModelSync.impl.js
|
|
13945
13945
|
var STOP_SYNC_MODEL_DELTA_TIME_MS = 60 * 1e3;
|
|
13946
13946
|
var WorkerTextModelSyncServer = class {
|
|
13947
13947
|
constructor() {
|
|
@@ -14143,7 +14143,7 @@ var MirrorModel = class extends MirrorTextModel {
|
|
|
14143
14143
|
}
|
|
14144
14144
|
};
|
|
14145
14145
|
|
|
14146
|
-
// node_modules
|
|
14146
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/services/editorWebWorker.js
|
|
14147
14147
|
var EditorWorker = class _EditorWorker {
|
|
14148
14148
|
constructor(_foreignModule = null) {
|
|
14149
14149
|
this._foreignModule = _foreignModule;
|
|
@@ -14415,7 +14415,7 @@ if (typeof importScripts === "function") {
|
|
|
14415
14415
|
globalThis.monaco = createMonacoBaseAPI();
|
|
14416
14416
|
}
|
|
14417
14417
|
|
|
14418
|
-
// node_modules
|
|
14418
|
+
// node_modules/monaco-editor-core/esm/vs/editor/common/services/editorWorkerHost.js
|
|
14419
14419
|
var EditorWorkerHost = class _EditorWorkerHost {
|
|
14420
14420
|
static {
|
|
14421
14421
|
this.CHANNEL_NAME = "editorWorkerHost";
|
|
@@ -14428,7 +14428,7 @@ var EditorWorkerHost = class _EditorWorkerHost {
|
|
|
14428
14428
|
}
|
|
14429
14429
|
};
|
|
14430
14430
|
|
|
14431
|
-
// node_modules
|
|
14431
|
+
// node_modules/monaco-editor-core/esm/vs/editor/editor.worker.start.js
|
|
14432
14432
|
function start(createClient) {
|
|
14433
14433
|
let client;
|
|
14434
14434
|
const webWorkerServer = initialize((workerServer) => {
|