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/lsp/html/worker.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules
|
|
1
|
+
// node_modules/@vscode/l10n/dist/browser.js
|
|
2
2
|
var bundle;
|
|
3
3
|
function t(...args) {
|
|
4
4
|
const firstArg = args[0];
|
|
@@ -48,7 +48,7 @@ function format(template, values) {
|
|
|
48
48
|
return template.replace(_format2Regexp, (match, group) => values[group] ?? match);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
// node_modules
|
|
51
|
+
// node_modules/vscode-languageserver-types/lib/esm/main.js
|
|
52
52
|
var DocumentUri;
|
|
53
53
|
(function(DocumentUri2) {
|
|
54
54
|
function is(value) {
|
|
@@ -1231,7 +1231,7 @@ var Is;
|
|
|
1231
1231
|
Is2.typedArray = typedArray;
|
|
1232
1232
|
})(Is || (Is = {}));
|
|
1233
1233
|
|
|
1234
|
-
// node_modules
|
|
1234
|
+
// node_modules/vscode-languageserver-textdocument/lib/esm/main.js
|
|
1235
1235
|
var FullTextDocument2 = class _FullTextDocument {
|
|
1236
1236
|
constructor(uri, languageId, version, content) {
|
|
1237
1237
|
this._uri = uri;
|
|
@@ -1455,7 +1455,7 @@ function getWellformedEdit(textEdit) {
|
|
|
1455
1455
|
return textEdit;
|
|
1456
1456
|
}
|
|
1457
1457
|
|
|
1458
|
-
// node_modules
|
|
1458
|
+
// node_modules/vscode-html-languageservice/lib/esm/htmlLanguageTypes.js
|
|
1459
1459
|
var TokenType;
|
|
1460
1460
|
(function(TokenType2) {
|
|
1461
1461
|
TokenType2[TokenType2["StartCommentTag"] = 0] = "StartCommentTag";
|
|
@@ -1518,7 +1518,7 @@ var FileType;
|
|
|
1518
1518
|
FileType2[FileType2["SymbolicLink"] = 64] = "SymbolicLink";
|
|
1519
1519
|
})(FileType || (FileType = {}));
|
|
1520
1520
|
|
|
1521
|
-
// node_modules
|
|
1521
|
+
// node_modules/vscode-html-languageservice/lib/esm/parser/htmlScanner.js
|
|
1522
1522
|
var MultiLineStream = class {
|
|
1523
1523
|
constructor(source, position) {
|
|
1524
1524
|
this.source = source;
|
|
@@ -1909,7 +1909,7 @@ function createScanner(input, initialOffset = 0, initialState = ScannerState.Wit
|
|
|
1909
1909
|
};
|
|
1910
1910
|
}
|
|
1911
1911
|
|
|
1912
|
-
// node_modules
|
|
1912
|
+
// node_modules/vscode-html-languageservice/lib/esm/utils/arrays.js
|
|
1913
1913
|
function findFirst(array, p) {
|
|
1914
1914
|
let low = 0, high = array.length;
|
|
1915
1915
|
if (high === 0) {
|
|
@@ -1941,7 +1941,7 @@ function binarySearch(array, key, comparator) {
|
|
|
1941
1941
|
return -(low + 1);
|
|
1942
1942
|
}
|
|
1943
1943
|
|
|
1944
|
-
// node_modules
|
|
1944
|
+
// node_modules/vscode-html-languageservice/lib/esm/parser/htmlParser.js
|
|
1945
1945
|
var Node = class {
|
|
1946
1946
|
get attributeNames() {
|
|
1947
1947
|
return this.attributes ? Object.keys(this.attributes) : [];
|
|
@@ -2099,7 +2099,7 @@ var HTMLParser = class {
|
|
|
2099
2099
|
}
|
|
2100
2100
|
};
|
|
2101
2101
|
|
|
2102
|
-
// node_modules
|
|
2102
|
+
// node_modules/vscode-html-languageservice/lib/esm/parser/htmlEntities.js
|
|
2103
2103
|
var entities = {
|
|
2104
2104
|
"Aacute;": "\xC1",
|
|
2105
2105
|
"Aacute": "\xC1",
|
|
@@ -4334,7 +4334,7 @@ var entities = {
|
|
|
4334
4334
|
"zwnj;": "\u200C"
|
|
4335
4335
|
};
|
|
4336
4336
|
|
|
4337
|
-
// node_modules
|
|
4337
|
+
// node_modules/vscode-html-languageservice/lib/esm/utils/strings.js
|
|
4338
4338
|
function startsWith(haystack, needle) {
|
|
4339
4339
|
if (haystack.length < needle.length) {
|
|
4340
4340
|
return false;
|
|
@@ -4378,12 +4378,12 @@ function isLetterOrDigit(text, index) {
|
|
|
4378
4378
|
return _a <= c && c <= _z || _A <= c && c <= _Z || _0 <= c && c <= _9;
|
|
4379
4379
|
}
|
|
4380
4380
|
|
|
4381
|
-
// node_modules
|
|
4381
|
+
// node_modules/vscode-html-languageservice/lib/esm/utils/object.js
|
|
4382
4382
|
function isDefined(obj) {
|
|
4383
4383
|
return typeof obj !== "undefined";
|
|
4384
4384
|
}
|
|
4385
4385
|
|
|
4386
|
-
// node_modules
|
|
4386
|
+
// node_modules/vscode-html-languageservice/lib/esm/utils/markup.js
|
|
4387
4387
|
function normalizeMarkupContent(input) {
|
|
4388
4388
|
if (!input) {
|
|
4389
4389
|
return void 0;
|
|
@@ -4400,7 +4400,7 @@ function normalizeMarkupContent(input) {
|
|
|
4400
4400
|
};
|
|
4401
4401
|
}
|
|
4402
4402
|
|
|
4403
|
-
// node_modules
|
|
4403
|
+
// node_modules/vscode-html-languageservice/lib/esm/languageFacts/dataProvider.js
|
|
4404
4404
|
var BaselineImages = {
|
|
4405
4405
|
BASELINE_LIMITED: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCA1NDAgMzAwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxzdHlsZT4KICAgIC5ncmF5LXNoYXBlIHsKICAgICAgZmlsbDogI0M2QzZDNjsgLyogTGlnaHQgbW9kZSAqLwogICAgfQoKICAgIEBtZWRpYSAocHJlZmVycy1jb2xvci1zY2hlbWU6IGRhcmspIHsKICAgICAgLmdyYXktc2hhcGUgewogICAgICAgIGZpbGw6ICM1NjU2NTY7IC8qIERhcmsgbW9kZSAqLwogICAgICB9CiAgICB9CiAgPC9zdHlsZT4KICA8cGF0aCBkPSJNMTUwIDBMMjQwIDkwTDIxMCAxMjBMMTIwIDMwTDE1MCAwWiIgZmlsbD0iI0YwOTQwOSIvPgogIDxwYXRoIGQ9Ik00MjAgMzBMNTQwIDE1MEw0MjAgMjcwTDM5MCAyNDBMNDgwIDE1MEwzOTAgNjBMNDIwIDMwWiIgY2xhc3M9ImdyYXktc2hhcGUiLz4KICA8cGF0aCBkPSJNMzMwIDE4MEwzMDAgMjEwTDM5MCAzMDBMNDIwIDI3MEwzMzAgMTgwWiIgZmlsbD0iI0YwOTQwOSIvPgogIDxwYXRoIGQ9Ik0xMjAgMzBMMTUwIDYwTDYwIDE1MEwxNTAgMjQwTDEyMCAyNzBMMCAxNTBMMTIwIDMwWiIgY2xhc3M9ImdyYXktc2hhcGUiLz4KICA8cGF0aCBkPSJNMzkwIDBMNDIwIDMwTDE1MCAzMDBMMTIwIDI3MEwzOTAgMFoiIGZpbGw9IiNGMDk0MDkiLz4KPC9zdmc+",
|
|
4406
4406
|
BASELINE_LOW: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCA1NDAgMzAwIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxzdHlsZT4KICAgIC5ibHVlLXNoYXBlIHsKICAgICAgZmlsbDogI0E4QzdGQTsgLyogTGlnaHQgbW9kZSAqLwogICAgfQoKICAgIEBtZWRpYSAocHJlZmVycy1jb2xvci1zY2hlbWU6IGRhcmspIHsKICAgICAgLmJsdWUtc2hhcGUgewogICAgICAgIGZpbGw6ICMyRDUwOUU7IC8qIERhcmsgbW9kZSAqLwogICAgICB9CiAgICB9CgogICAgLmRhcmtlci1ibHVlLXNoYXBlIHsKICAgICAgICBmaWxsOiAjMUI2RUYzOwogICAgfQoKICAgIEBtZWRpYSAocHJlZmVycy1jb2xvci1zY2hlbWU6IGRhcmspIHsKICAgICAgICAuZGFya2VyLWJsdWUtc2hhcGUgewogICAgICAgICAgICBmaWxsOiAjNDE4NUZGOwogICAgICAgIH0KICAgIH0KCiAgPC9zdHlsZT4KICA8cGF0aCBkPSJNMTUwIDBMMTgwIDMwTDE1MCA2MEwxMjAgMzBMMTUwIDBaIiBjbGFzcz0iYmx1ZS1zaGFwZSIvPgogIDxwYXRoIGQ9Ik0yMTAgNjBMMjQwIDkwTDIxMCAxMjBMMTgwIDkwTDIxMCA2MFoiIGNsYXNzPSJibHVlLXNoYXBlIi8+CiAgPHBhdGggZD0iTTQ1MCA2MEw0ODAgOTBMNDUwIDEyMEw0MjAgOTBMNDUwIDYwWiIgY2xhc3M9ImJsdWUtc2hhcGUiLz4KICA8cGF0aCBkPSJNNTEwIDEyMEw1NDAgMTUwTDUxMCAxODBMNDgwIDE1MEw1MTAgMTIwWiIgY2xhc3M9ImJsdWUtc2hhcGUiLz4KICA8cGF0aCBkPSJNNDUwIDE4MEw0ODAgMjEwTDQ1MCAyNDBMNDIwIDIxMEw0NTAgMTgwWiIgY2xhc3M9ImJsdWUtc2hhcGUiLz4KICA8cGF0aCBkPSJNMzkwIDI0MEw0MjAgMjcwTDM5MCAzMDBMMzYwIDI3MEwzOTAgMjQwWiIgY2xhc3M9ImJsdWUtc2hhcGUiLz4KICA8cGF0aCBkPSJNMzMwIDE4MEwzNjAgMjEwTDMzMCAyNDBMMzAwIDIxMEwzMzAgMTgwWiIgY2xhc3M9ImJsdWUtc2hhcGUiLz4KICA8cGF0aCBkPSJNOTAgNjBMMTIwIDkwTDkwIDEyMEw2MCA5MEw5MCA2MFoiIGNsYXNzPSJibHVlLXNoYXBlIi8+CiAgPHBhdGggZD0iTTM5MCAwTDQyMCAzMEwxNTAgMzAwTDAgMTUwTDMwIDEyMEwxNTAgMjQwTDM5MCAwWiIgY2xhc3M9ImRhcmtlci1ibHVlLXNoYXBlIi8+Cjwvc3ZnPg==",
|
|
@@ -4613,7 +4613,7 @@ function generateDocumentation(item, settings = {}, doesSupportMarkdown) {
|
|
|
4613
4613
|
return result;
|
|
4614
4614
|
}
|
|
4615
4615
|
|
|
4616
|
-
// node_modules
|
|
4616
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/pathCompletion.js
|
|
4617
4617
|
var PathCompletionParticipant = class {
|
|
4618
4618
|
constructor(dataManager, readDirectory) {
|
|
4619
4619
|
this.dataManager = dataManager;
|
|
@@ -4724,7 +4724,7 @@ function shiftRange(range, startOffset, endOffset) {
|
|
|
4724
4724
|
return Range.create(start, end);
|
|
4725
4725
|
}
|
|
4726
4726
|
|
|
4727
|
-
// node_modules
|
|
4727
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlCompletion.js
|
|
4728
4728
|
var HTMLCompletion = class {
|
|
4729
4729
|
constructor(lsOptions, dataManager) {
|
|
4730
4730
|
this.lsOptions = lsOptions;
|
|
@@ -5283,7 +5283,7 @@ function getWordEnd(s, offset, limit) {
|
|
|
5283
5283
|
return offset;
|
|
5284
5284
|
}
|
|
5285
5285
|
|
|
5286
|
-
// node_modules
|
|
5286
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlHover.js
|
|
5287
5287
|
var HTMLHover = class {
|
|
5288
5288
|
constructor(lsOptions, dataManager) {
|
|
5289
5289
|
this.lsOptions = lsOptions;
|
|
@@ -5529,12 +5529,12 @@ function trimQuotes(s) {
|
|
|
5529
5529
|
return s;
|
|
5530
5530
|
}
|
|
5531
5531
|
|
|
5532
|
-
// node_modules
|
|
5532
|
+
// node_modules/vscode-html-languageservice/lib/esm/beautify/beautify.js
|
|
5533
5533
|
function js_beautify(js_source_text, options) {
|
|
5534
5534
|
return js_source_text;
|
|
5535
5535
|
}
|
|
5536
5536
|
|
|
5537
|
-
// node_modules
|
|
5537
|
+
// node_modules/vscode-html-languageservice/lib/esm/beautify/beautify-css.js
|
|
5538
5538
|
var legacy_beautify_css;
|
|
5539
5539
|
(function() {
|
|
5540
5540
|
"use strict";
|
|
@@ -6618,7 +6618,7 @@ var legacy_beautify_css;
|
|
|
6618
6618
|
})();
|
|
6619
6619
|
var css_beautify = legacy_beautify_css;
|
|
6620
6620
|
|
|
6621
|
-
// node_modules
|
|
6621
|
+
// node_modules/vscode-html-languageservice/lib/esm/beautify/beautify-html.js
|
|
6622
6622
|
var legacy_beautify_html;
|
|
6623
6623
|
(function() {
|
|
6624
6624
|
"use strict";
|
|
@@ -8757,7 +8757,7 @@ function html_beautify(html_source, options) {
|
|
|
8757
8757
|
return legacy_beautify_html(html_source, options, js_beautify, css_beautify);
|
|
8758
8758
|
}
|
|
8759
8759
|
|
|
8760
|
-
// node_modules
|
|
8760
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlFormatter.js
|
|
8761
8761
|
function format2(document, range, options) {
|
|
8762
8762
|
let value = document.getText();
|
|
8763
8763
|
let includesEnd = true;
|
|
@@ -8891,7 +8891,7 @@ function isWhitespace(text, offset) {
|
|
|
8891
8891
|
return " ".indexOf(text.charAt(offset)) !== -1;
|
|
8892
8892
|
}
|
|
8893
8893
|
|
|
8894
|
-
// node_modules
|
|
8894
|
+
// node_modules/vscode-uri/lib/esm/index.mjs
|
|
8895
8895
|
var LIB;
|
|
8896
8896
|
(() => {
|
|
8897
8897
|
"use strict";
|
|
@@ -9226,7 +9226,7 @@ var LIB;
|
|
|
9226
9226
|
})();
|
|
9227
9227
|
var { URI: URI2, Utils } = LIB;
|
|
9228
9228
|
|
|
9229
|
-
// node_modules
|
|
9229
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlLinks.js
|
|
9230
9230
|
function normalizeRef(url) {
|
|
9231
9231
|
const first = url[0];
|
|
9232
9232
|
const last = url[url.length - 1];
|
|
@@ -9376,7 +9376,7 @@ var HTMLDocumentLinks = class {
|
|
|
9376
9376
|
}
|
|
9377
9377
|
};
|
|
9378
9378
|
|
|
9379
|
-
// node_modules
|
|
9379
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlHighlighting.js
|
|
9380
9380
|
function findDocumentHighlights(document, position, htmlDocument) {
|
|
9381
9381
|
const offset = document.offsetAt(position);
|
|
9382
9382
|
const node = htmlDocument.findNodeAt(offset);
|
|
@@ -9414,7 +9414,7 @@ function getTagNameRange(tokenType, document, startOffset) {
|
|
|
9414
9414
|
return null;
|
|
9415
9415
|
}
|
|
9416
9416
|
|
|
9417
|
-
// node_modules
|
|
9417
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlSymbolsProvider.js
|
|
9418
9418
|
function findDocumentSymbols(document, htmlDocument) {
|
|
9419
9419
|
const symbols = [];
|
|
9420
9420
|
const symbols2 = findDocumentSymbols2(document, htmlDocument);
|
|
@@ -9465,7 +9465,7 @@ function nodeToName(node) {
|
|
|
9465
9465
|
return name || "?";
|
|
9466
9466
|
}
|
|
9467
9467
|
|
|
9468
|
-
// node_modules
|
|
9468
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlRename.js
|
|
9469
9469
|
function doRename(document, position, newName, htmlDocument) {
|
|
9470
9470
|
const offset = document.offsetAt(position);
|
|
9471
9471
|
const node = htmlDocument.findNodeAt(offset);
|
|
@@ -9510,7 +9510,7 @@ function isWithinTagRange(node, offset, nodeTag) {
|
|
|
9510
9510
|
return node.start + "<".length <= offset && offset <= node.start + "<".length + nodeTag.length;
|
|
9511
9511
|
}
|
|
9512
9512
|
|
|
9513
|
-
// node_modules
|
|
9513
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlMatchingTagPosition.js
|
|
9514
9514
|
function findMatchingTagPosition(document, position, htmlDocument) {
|
|
9515
9515
|
const offset = document.offsetAt(position);
|
|
9516
9516
|
const node = htmlDocument.findNodeAt(offset);
|
|
@@ -9531,7 +9531,7 @@ function findMatchingTagPosition(document, position, htmlDocument) {
|
|
|
9531
9531
|
return null;
|
|
9532
9532
|
}
|
|
9533
9533
|
|
|
9534
|
-
// node_modules
|
|
9534
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlLinkedEditing.js
|
|
9535
9535
|
function findLinkedEditingRanges(document, position, htmlDocument) {
|
|
9536
9536
|
const offset = document.offsetAt(position);
|
|
9537
9537
|
const node = htmlDocument.findNodeAt(offset);
|
|
@@ -9552,7 +9552,7 @@ function findLinkedEditingRanges(document, position, htmlDocument) {
|
|
|
9552
9552
|
return null;
|
|
9553
9553
|
}
|
|
9554
9554
|
|
|
9555
|
-
// node_modules
|
|
9555
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlFolding.js
|
|
9556
9556
|
var HTMLFolding = class {
|
|
9557
9557
|
constructor(dataManager) {
|
|
9558
9558
|
this.dataManager = dataManager;
|
|
@@ -9715,7 +9715,7 @@ var HTMLFolding = class {
|
|
|
9715
9715
|
}
|
|
9716
9716
|
};
|
|
9717
9717
|
|
|
9718
|
-
// node_modules
|
|
9718
|
+
// node_modules/vscode-html-languageservice/lib/esm/services/htmlSelectionRange.js
|
|
9719
9719
|
var HTMLSelectionRange = class {
|
|
9720
9720
|
constructor(htmlParser) {
|
|
9721
9721
|
this.htmlParser = htmlParser;
|
|
@@ -9851,7 +9851,7 @@ var HTMLSelectionRange = class {
|
|
|
9851
9851
|
}
|
|
9852
9852
|
};
|
|
9853
9853
|
|
|
9854
|
-
// node_modules
|
|
9854
|
+
// node_modules/vscode-html-languageservice/lib/esm/languageFacts/data/webCustomData.js
|
|
9855
9855
|
var htmlData = {
|
|
9856
9856
|
"version": 1.1,
|
|
9857
9857
|
"tags": [
|
|
@@ -21734,7 +21734,7 @@ var htmlData = {
|
|
|
21734
21734
|
]
|
|
21735
21735
|
};
|
|
21736
21736
|
|
|
21737
|
-
// node_modules
|
|
21737
|
+
// node_modules/vscode-html-languageservice/lib/esm/languageFacts/dataManager.js
|
|
21738
21738
|
var HTMLDataManager = class {
|
|
21739
21739
|
constructor(options) {
|
|
21740
21740
|
this.dataProviders = [];
|
|
@@ -21803,7 +21803,7 @@ var PATH_TAG_AND_ATTR = {
|
|
|
21803
21803
|
video: ["src", "poster"]
|
|
21804
21804
|
};
|
|
21805
21805
|
|
|
21806
|
-
// node_modules
|
|
21806
|
+
// node_modules/vscode-html-languageservice/lib/esm/htmlLanguageService.js
|
|
21807
21807
|
var defaultLanguageServiceOptions = {};
|
|
21808
21808
|
function getLanguageService(options = defaultLanguageServiceOptions) {
|
|
21809
21809
|
const dataManager = new HTMLDataManager(options);
|
package/dist/lsp/json/setup.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules
|
|
1
|
+
// node_modules/@esm.sh/import-map/dist/import-map.mjs
|
|
2
2
|
function createBlankImportMap(baseURL) {
|
|
3
3
|
return {
|
|
4
4
|
$baseURL: new URL(baseURL ?? ".", "file:///").href,
|
|
@@ -114,15 +114,17 @@ var schemas = [
|
|
|
114
114
|
import * as client from "../client.mjs";
|
|
115
115
|
async function setup(monaco, languageId, languageSettings, formattingOptions, workspace) {
|
|
116
116
|
const { editor, languages } = monaco;
|
|
117
|
+
const schemas2 = Array.isArray(languageSettings?.schemas) ? schemas.concat(languageSettings.schemas) : schemas;
|
|
117
118
|
const createData = {
|
|
118
119
|
settings: {
|
|
119
120
|
validate: true,
|
|
120
121
|
allowComments: false,
|
|
121
|
-
schemas: Array.isArray(languageSettings?.schemas) ? schemas.concat(languageSettings.schemas) : schemas,
|
|
122
122
|
comments: "error",
|
|
123
123
|
trailingCommas: "error",
|
|
124
124
|
schemaRequest: "warning",
|
|
125
|
-
schemaValidation: "warning"
|
|
125
|
+
schemaValidation: "warning",
|
|
126
|
+
...languageSettings,
|
|
127
|
+
schemas: schemas2
|
|
126
128
|
},
|
|
127
129
|
format: {
|
|
128
130
|
tabSize: 4,
|
package/dist/lsp/json/worker.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules
|
|
1
|
+
// node_modules/jsonc-parser/lib/esm/impl/scanner.js
|
|
2
2
|
function createScanner(text, ignoreTrivia = false) {
|
|
3
3
|
const len = text.length;
|
|
4
4
|
let pos = 0, value = "", tokenOffset = 0, token = 16, lineNumber = 0, lineStartOffset = 0, tokenLineStartOffset = 0, prevTokenLineStartOffset = 0, scanError = 0;
|
|
@@ -419,7 +419,7 @@ var CharacterCodes;
|
|
|
419
419
|
CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
|
|
420
420
|
})(CharacterCodes || (CharacterCodes = {}));
|
|
421
421
|
|
|
422
|
-
// node_modules
|
|
422
|
+
// node_modules/jsonc-parser/lib/esm/impl/string-intern.js
|
|
423
423
|
var cachedSpaces = new Array(20).fill(0).map((_, index) => {
|
|
424
424
|
return " ".repeat(index);
|
|
425
425
|
});
|
|
@@ -450,7 +450,7 @@ var cachedBreakLinesWithSpaces = {
|
|
|
450
450
|
};
|
|
451
451
|
var supportedEols = ["\n", "\r", "\r\n"];
|
|
452
452
|
|
|
453
|
-
// node_modules
|
|
453
|
+
// node_modules/jsonc-parser/lib/esm/impl/format.js
|
|
454
454
|
function format(documentText, range, options) {
|
|
455
455
|
let initialIndentLevel;
|
|
456
456
|
let formatText;
|
|
@@ -686,7 +686,7 @@ function isEOL(text, offset) {
|
|
|
686
686
|
return "\r\n".indexOf(text.charAt(offset)) !== -1;
|
|
687
687
|
}
|
|
688
688
|
|
|
689
|
-
// node_modules
|
|
689
|
+
// node_modules/jsonc-parser/lib/esm/impl/parser.js
|
|
690
690
|
var ParseOptions;
|
|
691
691
|
(function(ParseOptions2) {
|
|
692
692
|
ParseOptions2.DEFAULT = {
|
|
@@ -1098,7 +1098,7 @@ function visit(text, visitor, options = ParseOptions.DEFAULT) {
|
|
|
1098
1098
|
return true;
|
|
1099
1099
|
}
|
|
1100
1100
|
|
|
1101
|
-
// node_modules
|
|
1101
|
+
// node_modules/jsonc-parser/lib/esm/main.js
|
|
1102
1102
|
var createScanner2 = createScanner;
|
|
1103
1103
|
var ScanError;
|
|
1104
1104
|
(function(ScanError2) {
|
|
@@ -1157,7 +1157,7 @@ function format2(documentText, range, options) {
|
|
|
1157
1157
|
return format(documentText, range, options);
|
|
1158
1158
|
}
|
|
1159
1159
|
|
|
1160
|
-
// node_modules
|
|
1160
|
+
// node_modules/vscode-json-languageservice/lib/esm/utils/objects.js
|
|
1161
1161
|
function equals(one, other) {
|
|
1162
1162
|
if (one === other) {
|
|
1163
1163
|
return true;
|
|
@@ -1222,7 +1222,7 @@ function isObject(val) {
|
|
|
1222
1222
|
return typeof val === "object" && val !== null && !Array.isArray(val);
|
|
1223
1223
|
}
|
|
1224
1224
|
|
|
1225
|
-
// node_modules
|
|
1225
|
+
// node_modules/vscode-json-languageservice/lib/esm/utils/strings.js
|
|
1226
1226
|
function startsWith(haystack, needle) {
|
|
1227
1227
|
if (haystack.length < needle.length) {
|
|
1228
1228
|
return false;
|
|
@@ -1272,7 +1272,7 @@ function stringLength(str) {
|
|
|
1272
1272
|
return count;
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
|
-
// node_modules
|
|
1275
|
+
// node_modules/vscode-languageserver-types/lib/esm/main.js
|
|
1276
1276
|
var DocumentUri;
|
|
1277
1277
|
(function(DocumentUri2) {
|
|
1278
1278
|
function is(value) {
|
|
@@ -2455,7 +2455,7 @@ var Is;
|
|
|
2455
2455
|
Is2.typedArray = typedArray;
|
|
2456
2456
|
})(Is || (Is = {}));
|
|
2457
2457
|
|
|
2458
|
-
// node_modules
|
|
2458
|
+
// node_modules/vscode-languageserver-textdocument/lib/esm/main.js
|
|
2459
2459
|
var FullTextDocument2 = class _FullTextDocument {
|
|
2460
2460
|
constructor(uri, languageId, version, content) {
|
|
2461
2461
|
this._uri = uri;
|
|
@@ -2679,7 +2679,7 @@ function getWellformedEdit(textEdit) {
|
|
|
2679
2679
|
return textEdit;
|
|
2680
2680
|
}
|
|
2681
2681
|
|
|
2682
|
-
// node_modules
|
|
2682
|
+
// node_modules/vscode-json-languageservice/lib/esm/jsonLanguageTypes.js
|
|
2683
2683
|
var ErrorCode;
|
|
2684
2684
|
(function(ErrorCode2) {
|
|
2685
2685
|
ErrorCode2[ErrorCode2["Undefined"] = 0] = "Undefined";
|
|
@@ -2728,7 +2728,7 @@ var ClientCapabilities;
|
|
|
2728
2728
|
};
|
|
2729
2729
|
})(ClientCapabilities || (ClientCapabilities = {}));
|
|
2730
2730
|
|
|
2731
|
-
// node_modules
|
|
2731
|
+
// node_modules/vscode-uri/lib/esm/index.mjs
|
|
2732
2732
|
var LIB;
|
|
2733
2733
|
(() => {
|
|
2734
2734
|
"use strict";
|
|
@@ -3063,7 +3063,7 @@ var LIB;
|
|
|
3063
3063
|
})();
|
|
3064
3064
|
var { URI: URI2, Utils } = LIB;
|
|
3065
3065
|
|
|
3066
|
-
// node_modules
|
|
3066
|
+
// node_modules/@vscode/l10n/dist/browser.js
|
|
3067
3067
|
var bundle;
|
|
3068
3068
|
function t(...args) {
|
|
3069
3069
|
const firstArg = args[0];
|
|
@@ -3113,7 +3113,7 @@ function format3(template, values) {
|
|
|
3113
3113
|
return template.replace(_format2Regexp, (match, group) => values[group] ?? match);
|
|
3114
3114
|
}
|
|
3115
3115
|
|
|
3116
|
-
// node_modules
|
|
3116
|
+
// node_modules/vscode-json-languageservice/lib/esm/parser/jsonParser.js
|
|
3117
3117
|
var formats = {
|
|
3118
3118
|
"color-hex": { errorMessage: t("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."), pattern: /^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/ },
|
|
3119
3119
|
"date-time": { errorMessage: t("String is not a RFC3339 date-time."), pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i },
|
|
@@ -4353,7 +4353,7 @@ function parse3(textDocument, config) {
|
|
|
4353
4353
|
return new JSONDocument(_root, problems, commentRanges);
|
|
4354
4354
|
}
|
|
4355
4355
|
|
|
4356
|
-
// node_modules
|
|
4356
|
+
// node_modules/vscode-json-languageservice/lib/esm/utils/json.js
|
|
4357
4357
|
function stringifyObject(obj, indent, stringifyLiteral) {
|
|
4358
4358
|
if (obj !== null && typeof obj === "object") {
|
|
4359
4359
|
const newIndent = indent + " ";
|
|
@@ -4392,7 +4392,7 @@ function stringifyObject(obj, indent, stringifyLiteral) {
|
|
|
4392
4392
|
return stringifyLiteral(obj);
|
|
4393
4393
|
}
|
|
4394
4394
|
|
|
4395
|
-
// node_modules
|
|
4395
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/jsonCompletion.js
|
|
4396
4396
|
var valueCommitCharacters = [",", "}", "]"];
|
|
4397
4397
|
var propertyCommitCharacters = [":"];
|
|
4398
4398
|
var JSONCompletion = class {
|
|
@@ -5326,7 +5326,7 @@ var JSONCompletion = class {
|
|
|
5326
5326
|
}
|
|
5327
5327
|
};
|
|
5328
5328
|
|
|
5329
|
-
// node_modules
|
|
5329
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/jsonHover.js
|
|
5330
5330
|
var JSONHover = class {
|
|
5331
5331
|
constructor(schemaService, contributions = [], promiseConstructor) {
|
|
5332
5332
|
this.schemaService = schemaService;
|
|
@@ -5424,7 +5424,7 @@ function toMarkdownCodeBlock(content) {
|
|
|
5424
5424
|
return content;
|
|
5425
5425
|
}
|
|
5426
5426
|
|
|
5427
|
-
// node_modules
|
|
5427
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/jsonValidation.js
|
|
5428
5428
|
var JSONValidation = class {
|
|
5429
5429
|
constructor(jsonSchemaService, promiseConstructor) {
|
|
5430
5430
|
this.jsonSchemaService = jsonSchemaService;
|
|
@@ -5569,7 +5569,7 @@ function toDiagnosticSeverity(severityLevel) {
|
|
|
5569
5569
|
return void 0;
|
|
5570
5570
|
}
|
|
5571
5571
|
|
|
5572
|
-
// node_modules
|
|
5572
|
+
// node_modules/vscode-json-languageservice/lib/esm/utils/colors.js
|
|
5573
5573
|
var Digit0 = 48;
|
|
5574
5574
|
var Digit9 = 57;
|
|
5575
5575
|
var A = 65;
|
|
@@ -5627,7 +5627,7 @@ function colorFromHex(text) {
|
|
|
5627
5627
|
return void 0;
|
|
5628
5628
|
}
|
|
5629
5629
|
|
|
5630
|
-
// node_modules
|
|
5630
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/jsonDocumentSymbols.js
|
|
5631
5631
|
var JSONDocumentSymbols = class {
|
|
5632
5632
|
constructor(schemaService) {
|
|
5633
5633
|
this.schemaService = schemaService;
|
|
@@ -5879,7 +5879,7 @@ function getName(node) {
|
|
|
5879
5879
|
return getNodeValue3(node) || t("<empty>");
|
|
5880
5880
|
}
|
|
5881
5881
|
|
|
5882
|
-
// node_modules
|
|
5882
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/schemas/draft-2019-09-flat.js
|
|
5883
5883
|
var draft_2019_09_flat_default = {
|
|
5884
5884
|
$id: "https://json-schema.org/draft/2019-09/schema",
|
|
5885
5885
|
$schema: "https://json-schema.org/draft/2019-09/schema",
|
|
@@ -6177,7 +6177,7 @@ var draft_2019_09_flat_default = {
|
|
|
6177
6177
|
}
|
|
6178
6178
|
};
|
|
6179
6179
|
|
|
6180
|
-
// node_modules
|
|
6180
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/schemas/draft-2020-12-flat.js
|
|
6181
6181
|
var draft_2020_12_flat_default = {
|
|
6182
6182
|
$id: "https://json-schema.org/draft/2020-12/schema",
|
|
6183
6183
|
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
@@ -6468,7 +6468,7 @@ var draft_2020_12_flat_default = {
|
|
|
6468
6468
|
}
|
|
6469
6469
|
};
|
|
6470
6470
|
|
|
6471
|
-
// node_modules
|
|
6471
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/configuration.js
|
|
6472
6472
|
var schemaContributions = {
|
|
6473
6473
|
schemaAssociations: [],
|
|
6474
6474
|
schemas: {
|
|
@@ -6986,7 +6986,7 @@ for (const schemaName in schemaContributions.schemas) {
|
|
|
6986
6986
|
}
|
|
6987
6987
|
}
|
|
6988
6988
|
|
|
6989
|
-
// node_modules
|
|
6989
|
+
// node_modules/vscode-json-languageservice/lib/esm/utils/glob.js
|
|
6990
6990
|
function createRegex(glob, opts) {
|
|
6991
6991
|
if (typeof glob !== "string") {
|
|
6992
6992
|
throw new TypeError("Expected a string");
|
|
@@ -7077,7 +7077,7 @@ function createRegex(glob, opts) {
|
|
|
7077
7077
|
return new RegExp(reStr, flags);
|
|
7078
7078
|
}
|
|
7079
7079
|
|
|
7080
|
-
// node_modules
|
|
7080
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/jsonSchemaService.js
|
|
7081
7081
|
var BANG = "!";
|
|
7082
7082
|
var PATH_SEP = "/";
|
|
7083
7083
|
var FilePatternAssociation = class {
|
|
@@ -7638,7 +7638,7 @@ function toDisplayString(url) {
|
|
|
7638
7638
|
return url;
|
|
7639
7639
|
}
|
|
7640
7640
|
|
|
7641
|
-
// node_modules
|
|
7641
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/jsonFolding.js
|
|
7642
7642
|
function getFoldingRanges(document, context) {
|
|
7643
7643
|
const ranges = [];
|
|
7644
7644
|
const nestingLevels = [];
|
|
@@ -7752,7 +7752,7 @@ function getFoldingRanges(document, context) {
|
|
|
7752
7752
|
return result;
|
|
7753
7753
|
}
|
|
7754
7754
|
|
|
7755
|
-
// node_modules
|
|
7755
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/jsonSelectionRanges.js
|
|
7756
7756
|
function getSelectionRanges(document, positions, doc) {
|
|
7757
7757
|
function getSelectionRange(position) {
|
|
7758
7758
|
let offset = document.offsetAt(position);
|
|
@@ -7812,7 +7812,7 @@ function getSelectionRanges(document, positions, doc) {
|
|
|
7812
7812
|
return positions.map(getSelectionRange);
|
|
7813
7813
|
}
|
|
7814
7814
|
|
|
7815
|
-
// node_modules
|
|
7815
|
+
// node_modules/vscode-json-languageservice/lib/esm/utils/format.js
|
|
7816
7816
|
function format4(documentToFormat, formattingOptions, formattingRange) {
|
|
7817
7817
|
let range = void 0;
|
|
7818
7818
|
if (formattingRange) {
|
|
@@ -7832,7 +7832,7 @@ function format4(documentToFormat, formattingOptions, formattingRange) {
|
|
|
7832
7832
|
});
|
|
7833
7833
|
}
|
|
7834
7834
|
|
|
7835
|
-
// node_modules
|
|
7835
|
+
// node_modules/vscode-json-languageservice/lib/esm/utils/propertyTree.js
|
|
7836
7836
|
var Container;
|
|
7837
7837
|
(function(Container2) {
|
|
7838
7838
|
Container2[Container2["Object"] = 0] = "Object";
|
|
@@ -7901,7 +7901,7 @@ function binarySearchOnPropertyArray(propertyTreeArray, propertyTree, compare_fn
|
|
|
7901
7901
|
return -m - 1;
|
|
7902
7902
|
}
|
|
7903
7903
|
|
|
7904
|
-
// node_modules
|
|
7904
|
+
// node_modules/vscode-json-languageservice/lib/esm/utils/sort.js
|
|
7905
7905
|
function sort(documentToSort, formattingOptions) {
|
|
7906
7906
|
const options = {
|
|
7907
7907
|
...formattingOptions,
|
|
@@ -8167,7 +8167,7 @@ var SortingRange = class {
|
|
|
8167
8167
|
}
|
|
8168
8168
|
};
|
|
8169
8169
|
|
|
8170
|
-
// node_modules
|
|
8170
|
+
// node_modules/vscode-json-languageservice/lib/esm/services/jsonLinks.js
|
|
8171
8171
|
function findLinks(document, doc) {
|
|
8172
8172
|
const links = [];
|
|
8173
8173
|
doc.visit((node) => {
|
|
@@ -8235,7 +8235,7 @@ function unescape(str) {
|
|
|
8235
8235
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
8236
8236
|
}
|
|
8237
8237
|
|
|
8238
|
-
// node_modules
|
|
8238
|
+
// node_modules/vscode-json-languageservice/lib/esm/jsonLanguageService.js
|
|
8239
8239
|
function getLanguageService(params) {
|
|
8240
8240
|
const promise = params.promiseConstructor || Promise;
|
|
8241
8241
|
const jsonSchemaService = new JSONSchemaService(params.schemaRequestService, params.workspaceContext, promise);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
"lib.d.ts": "/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/// <reference lib=\"es5\" />\n/// <reference lib=\"dom\" />\n/// <reference lib=\"webworker.importscripts\" />\n/// <reference lib=\"scripthost\" />\n",
|
|
3
2
|
"lib.decorators.d.ts": "/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/**\n * The decorator context types provided to class element decorators.\n */\ntype ClassMemberDecoratorContext =\n | ClassMethodDecoratorContext\n | ClassGetterDecoratorContext\n | ClassSetterDecoratorContext\n | ClassFieldDecoratorContext\n | ClassAccessorDecoratorContext;\n\n/**\n * The decorator context types provided to any decorator.\n */\ntype DecoratorContext =\n | ClassDecoratorContext\n | ClassMemberDecoratorContext;\n\ntype DecoratorMetadataObject = Record<PropertyKey, unknown> & object;\n\ntype DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;\n\n/**\n * Context provided to a class decorator.\n * @template Class The type of the decorated class associated with this context.\n */\ninterface ClassDecoratorContext<\n Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,\n> {\n /** The kind of element that was decorated. */\n readonly kind: \"class\";\n\n /** The name of the decorated class. */\n readonly name: string | undefined;\n\n /**\n * Adds a callback to be invoked after the class definition has been finalized.\n *\n * @example\n * ```ts\n * function customElement(name: string): ClassDecoratorFunction {\n * return (target, context) => {\n * context.addInitializer(function () {\n * customElements.define(name, this);\n * });\n * }\n * }\n *\n * @customElement(\"my-element\")\n * class MyElement {}\n * ```\n */\n addInitializer(initializer: (this: Class) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class method decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class method.\n */\ninterface ClassMethodDecoratorContext<\n This = unknown,\n Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: \"method\";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Gets the current value of the method from the provided object.\n *\n * @example\n * let fn = context.access.get(instance);\n */\n get(object: This): Value;\n };\n\n /**\n * Adds a callback to be invoked either after static methods are defined but before\n * static initializers are run (when decorating a `static` element), or before instance\n * initializers are run (when decorating a non-`static` element).\n *\n * @example\n * ```ts\n * const bound: ClassMethodDecoratorFunction = (value, context) {\n * if (context.private) throw new TypeError(\"Not supported on private methods.\");\n * context.addInitializer(function () {\n * this[context.name] = this[context.name].bind(this);\n * });\n * }\n *\n * class C {\n * message = \"Hello\";\n *\n * @bound\n * m() {\n * console.log(this.message);\n * }\n * }\n * ```\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class getter decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The property type of the decorated class getter.\n */\ninterface ClassGetterDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: \"getter\";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Invokes the getter on the provided object.\n *\n * @example\n * let value = context.access.get(instance);\n */\n get(object: This): Value;\n };\n\n /**\n * Adds a callback to be invoked either after static methods are defined but before\n * static initializers are run (when decorating a `static` element), or before instance\n * initializers are run (when decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class setter decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class setter.\n */\ninterface ClassSetterDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: \"setter\";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n /**\n * Invokes the setter on the provided object.\n *\n * @example\n * context.access.set(instance, value);\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked either after static methods are defined but before\n * static initializers are run (when decorating a `static` element), or before instance\n * initializers are run (when decorating a non-`static` element).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Context provided to a class `accessor` field decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of decorated class field.\n */\ninterface ClassAccessorDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: \"accessor\";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n\n /**\n * Invokes the getter on the provided object.\n *\n * @example\n * let value = context.access.get(instance);\n */\n get(object: This): Value;\n\n /**\n * Invokes the setter on the provided object.\n *\n * @example\n * context.access.set(instance, value);\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked immediately after the auto `accessor` being\n * decorated is initialized (regardless if the `accessor` is `static` or not).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n\n/**\n * Describes the target provided to class `accessor` field decorators.\n * @template This The `this` type to which the target applies.\n * @template Value The property type for the class `accessor` field.\n */\ninterface ClassAccessorDecoratorTarget<This, Value> {\n /**\n * Invokes the getter that was defined prior to decorator application.\n *\n * @example\n * let value = target.get.call(instance);\n */\n get(this: This): Value;\n\n /**\n * Invokes the setter that was defined prior to decorator application.\n *\n * @example\n * target.set.call(instance, value);\n */\n set(this: This, value: Value): void;\n}\n\n/**\n * Describes the allowed return value from a class `accessor` field decorator.\n * @template This The `this` type to which the target applies.\n * @template Value The property type for the class `accessor` field.\n */\ninterface ClassAccessorDecoratorResult<This, Value> {\n /**\n * An optional replacement getter function. If not provided, the existing getter function is used instead.\n */\n get?(this: This): Value;\n\n /**\n * An optional replacement setter function. If not provided, the existing setter function is used instead.\n */\n set?(this: This, value: Value): void;\n\n /**\n * An optional initializer mutator that is invoked when the underlying field initializer is evaluated.\n * @param value The incoming initializer value.\n * @returns The replacement initializer value.\n */\n init?(this: This, value: Value): Value;\n}\n\n/**\n * Context provided to a class field decorator.\n * @template This The type on which the class element will be defined. For a static class element, this will be\n * the type of the constructor. For a non-static class element, this will be the type of the instance.\n * @template Value The type of the decorated class field.\n */\ninterface ClassFieldDecoratorContext<\n This = unknown,\n Value = unknown,\n> {\n /** The kind of class element that was decorated. */\n readonly kind: \"field\";\n\n /** The name of the decorated class element. */\n readonly name: string | symbol;\n\n /** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */\n readonly static: boolean;\n\n /** A value indicating whether the class element has a private name. */\n readonly private: boolean;\n\n /** An object that can be used to access the current value of the class element at runtime. */\n readonly access: {\n /**\n * Determines whether an object has a property with the same name as the decorated element.\n */\n has(object: This): boolean;\n\n /**\n * Gets the value of the field on the provided object.\n */\n get(object: This): Value;\n\n /**\n * Sets the value of the field on the provided object.\n */\n set(object: This, value: Value): void;\n };\n\n /**\n * Adds a callback to be invoked immediately after the field being decorated\n * is initialized (regardless if the field is `static` or not).\n */\n addInitializer(initializer: (this: This) => void): void;\n\n readonly metadata: DecoratorMetadata;\n}\n",
|
|
4
3
|
"lib.decorators.legacy.d.ts": "/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\ndeclare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;\ndeclare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;\ndeclare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;\ndeclare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void;\n",
|
|
5
4
|
"lib.dom.asynciterable.d.ts": "/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\n/// <reference no-default-lib=\"true\"/>\n\n/////////////////////////////\n/// Window Async Iterable APIs\n/////////////////////////////\n\ninterface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;\n}\n\ninterface FileSystemDirectoryHandle {\n [Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;\n entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;\n keys(): FileSystemDirectoryHandleAsyncIterator<string>;\n values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;\n}\n\ninterface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {\n [Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;\n}\n\ninterface ReadableStream<R = any> {\n [Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;\n values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;\n}\n",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// node_modules
|
|
1
|
+
// node_modules/@esm.sh/import-map/dist/import-map.mjs
|
|
2
2
|
function resolve(importMap, specifier, containingFile) {
|
|
3
3
|
const { $baseURL, imports, scopes } = importMap;
|
|
4
4
|
const { origin, pathname } = new URL(containingFile, $baseURL);
|
|
@@ -57,7 +57,7 @@ function isObject(v) {
|
|
|
57
57
|
// src/lsp/typescript/worker.ts
|
|
58
58
|
import ts from "typescript";
|
|
59
59
|
|
|
60
|
-
// node_modules
|
|
60
|
+
// node_modules/vscode-languageserver-types/lib/esm/main.js
|
|
61
61
|
var DocumentUri;
|
|
62
62
|
(function(DocumentUri2) {
|
|
63
63
|
function is(value) {
|
|
@@ -1240,7 +1240,7 @@ var Is;
|
|
|
1240
1240
|
Is2.typedArray = typedArray;
|
|
1241
1241
|
})(Is || (Is = {}));
|
|
1242
1242
|
|
|
1243
|
-
// node_modules
|
|
1243
|
+
// node_modules/vscode-languageserver-textdocument/lib/esm/main.js
|
|
1244
1244
|
var FullTextDocument2 = class _FullTextDocument {
|
|
1245
1245
|
constructor(uri, languageId, version, content) {
|
|
1246
1246
|
this._uri = uri;
|