@codingame/monaco-vscode-standalone-html-language-features 13.1.5 → 13.1.7
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/htmlMode.js +45 -45
- package/index.js +2 -2
- package/package.json +2 -2
- package/worker.js +96 -96
package/htmlMode.js
CHANGED
|
@@ -318,7 +318,7 @@ var Diagnostic;
|
|
|
318
318
|
function is(value) {
|
|
319
319
|
var _a;
|
|
320
320
|
let candidate = value;
|
|
321
|
-
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a = candidate.codeDescription) === null || _a ===
|
|
321
|
+
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a = candidate.codeDescription) === null || _a === void 0 ? void 0 : _a.href)) && (Is.string(candidate.source) || Is.undefined(candidate.source)) && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
|
|
322
322
|
}
|
|
323
323
|
Diagnostic2.is = is;
|
|
324
324
|
})(Diagnostic || (Diagnostic = {}));
|
|
@@ -362,10 +362,10 @@ var ChangeAnnotation;
|
|
|
362
362
|
(function(ChangeAnnotation2) {
|
|
363
363
|
function create(label, needsConfirmation, description) {
|
|
364
364
|
const result = { label };
|
|
365
|
-
if (needsConfirmation !==
|
|
365
|
+
if (needsConfirmation !== void 0) {
|
|
366
366
|
result.needsConfirmation = needsConfirmation;
|
|
367
367
|
}
|
|
368
|
-
if (description !==
|
|
368
|
+
if (description !== void 0) {
|
|
369
369
|
result.description = description;
|
|
370
370
|
}
|
|
371
371
|
return result;
|
|
@@ -373,7 +373,7 @@ var ChangeAnnotation;
|
|
|
373
373
|
ChangeAnnotation2.create = create;
|
|
374
374
|
function is(value) {
|
|
375
375
|
const candidate = value;
|
|
376
|
-
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.boolean(candidate.needsConfirmation) || candidate.needsConfirmation ===
|
|
376
|
+
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.boolean(candidate.needsConfirmation) || candidate.needsConfirmation === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
|
377
377
|
}
|
|
378
378
|
ChangeAnnotation2.is = is;
|
|
379
379
|
})(ChangeAnnotation || (ChangeAnnotation = {}));
|
|
@@ -424,10 +424,10 @@ var CreateFile;
|
|
|
424
424
|
kind: "create",
|
|
425
425
|
uri
|
|
426
426
|
};
|
|
427
|
-
if (options !==
|
|
427
|
+
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
|
428
428
|
result.options = options;
|
|
429
429
|
}
|
|
430
|
-
if (annotation !==
|
|
430
|
+
if (annotation !== void 0) {
|
|
431
431
|
result.annotationId = annotation;
|
|
432
432
|
}
|
|
433
433
|
return result;
|
|
@@ -435,7 +435,7 @@ var CreateFile;
|
|
|
435
435
|
CreateFile2.create = create;
|
|
436
436
|
function is(value) {
|
|
437
437
|
let candidate = value;
|
|
438
|
-
return candidate && candidate.kind === "create" && Is.string(candidate.uri) && (candidate.options ===
|
|
438
|
+
return candidate && candidate.kind === "create" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
439
439
|
}
|
|
440
440
|
CreateFile2.is = is;
|
|
441
441
|
})(CreateFile || (CreateFile = {}));
|
|
@@ -447,10 +447,10 @@ var RenameFile;
|
|
|
447
447
|
oldUri,
|
|
448
448
|
newUri
|
|
449
449
|
};
|
|
450
|
-
if (options !==
|
|
450
|
+
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
|
451
451
|
result.options = options;
|
|
452
452
|
}
|
|
453
|
-
if (annotation !==
|
|
453
|
+
if (annotation !== void 0) {
|
|
454
454
|
result.annotationId = annotation;
|
|
455
455
|
}
|
|
456
456
|
return result;
|
|
@@ -458,7 +458,7 @@ var RenameFile;
|
|
|
458
458
|
RenameFile2.create = create;
|
|
459
459
|
function is(value) {
|
|
460
460
|
let candidate = value;
|
|
461
|
-
return candidate && candidate.kind === "rename" && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && (candidate.options ===
|
|
461
|
+
return candidate && candidate.kind === "rename" && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
462
462
|
}
|
|
463
463
|
RenameFile2.is = is;
|
|
464
464
|
})(RenameFile || (RenameFile = {}));
|
|
@@ -469,10 +469,10 @@ var DeleteFile;
|
|
|
469
469
|
kind: "delete",
|
|
470
470
|
uri
|
|
471
471
|
};
|
|
472
|
-
if (options !==
|
|
472
|
+
if (options !== void 0 && (options.recursive !== void 0 || options.ignoreIfNotExists !== void 0)) {
|
|
473
473
|
result.options = options;
|
|
474
474
|
}
|
|
475
|
-
if (annotation !==
|
|
475
|
+
if (annotation !== void 0) {
|
|
476
476
|
result.annotationId = annotation;
|
|
477
477
|
}
|
|
478
478
|
return result;
|
|
@@ -480,7 +480,7 @@ var DeleteFile;
|
|
|
480
480
|
DeleteFile2.create = create;
|
|
481
481
|
function is(value) {
|
|
482
482
|
let candidate = value;
|
|
483
|
-
return candidate && candidate.kind === "delete" && Is.string(candidate.uri) && (candidate.options ===
|
|
483
|
+
return candidate && candidate.kind === "delete" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.recursive === void 0 || Is.boolean(candidate.options.recursive)) && (candidate.options.ignoreIfNotExists === void 0 || Is.boolean(candidate.options.ignoreIfNotExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
484
484
|
}
|
|
485
485
|
DeleteFile2.is = is;
|
|
486
486
|
})(DeleteFile || (DeleteFile = {}));
|
|
@@ -488,7 +488,7 @@ var WorkspaceEdit;
|
|
|
488
488
|
(function(WorkspaceEdit2) {
|
|
489
489
|
function is(value) {
|
|
490
490
|
let candidate = value;
|
|
491
|
-
return candidate && (candidate.changes !==
|
|
491
|
+
return candidate && (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && (candidate.documentChanges === void 0 || candidate.documentChanges.every((change) => {
|
|
492
492
|
if (Is.string(change.kind)) {
|
|
493
493
|
return CreateFile.is(change) || RenameFile.is(change) || DeleteFile.is(change);
|
|
494
494
|
} else {
|
|
@@ -622,7 +622,7 @@ var CompletionItemLabelDetails;
|
|
|
622
622
|
(function(CompletionItemLabelDetails2) {
|
|
623
623
|
function is(value) {
|
|
624
624
|
const candidate = value;
|
|
625
|
-
return candidate && (Is.string(candidate.detail) || candidate.detail ===
|
|
625
|
+
return candidate && (Is.string(candidate.detail) || candidate.detail === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
|
626
626
|
}
|
|
627
627
|
CompletionItemLabelDetails2.is = is;
|
|
628
628
|
})(CompletionItemLabelDetails || (CompletionItemLabelDetails = {}));
|
|
@@ -656,7 +656,7 @@ var Hover;
|
|
|
656
656
|
(function(Hover2) {
|
|
657
657
|
function is(value) {
|
|
658
658
|
let candidate = value;
|
|
659
|
-
return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || Is.typedArray(candidate.contents, MarkedString.is)) && (value.range ===
|
|
659
|
+
return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || Is.typedArray(candidate.contents, MarkedString.is)) && (value.range === void 0 || Range.is(value.range));
|
|
660
660
|
}
|
|
661
661
|
Hover2.is = is;
|
|
662
662
|
})(Hover || (Hover = {}));
|
|
@@ -751,7 +751,7 @@ var SymbolInformation;
|
|
|
751
751
|
var WorkspaceSymbol;
|
|
752
752
|
(function(WorkspaceSymbol2) {
|
|
753
753
|
function create(name, kind, uri, range) {
|
|
754
|
-
return range !==
|
|
754
|
+
return range !== void 0 ? { name, kind, location: { uri, range } } : { name, kind, location: { uri } };
|
|
755
755
|
}
|
|
756
756
|
WorkspaceSymbol2.create = create;
|
|
757
757
|
})(WorkspaceSymbol || (WorkspaceSymbol = {}));
|
|
@@ -765,7 +765,7 @@ var DocumentSymbol;
|
|
|
765
765
|
range,
|
|
766
766
|
selectionRange
|
|
767
767
|
};
|
|
768
|
-
if (children !==
|
|
768
|
+
if (children !== void 0) {
|
|
769
769
|
result.children = children;
|
|
770
770
|
}
|
|
771
771
|
return result;
|
|
@@ -773,7 +773,7 @@ var DocumentSymbol;
|
|
|
773
773
|
DocumentSymbol2.create = create;
|
|
774
774
|
function is(value) {
|
|
775
775
|
let candidate = value;
|
|
776
|
-
return candidate && Is.string(candidate.name) && Is.number(candidate.kind) && Range.is(candidate.range) && Range.is(candidate.selectionRange) && (candidate.detail ===
|
|
776
|
+
return candidate && Is.string(candidate.name) && Is.number(candidate.kind) && Range.is(candidate.range) && Range.is(candidate.selectionRange) && (candidate.detail === void 0 || Is.string(candidate.detail)) && (candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) && (candidate.children === void 0 || Array.isArray(candidate.children)) && (candidate.tags === void 0 || Array.isArray(candidate.tags));
|
|
777
777
|
}
|
|
778
778
|
DocumentSymbol2.is = is;
|
|
779
779
|
})(DocumentSymbol || (DocumentSymbol = {}));
|
|
@@ -798,10 +798,10 @@ var CodeActionContext;
|
|
|
798
798
|
(function(CodeActionContext2) {
|
|
799
799
|
function create(diagnostics, only, triggerKind) {
|
|
800
800
|
let result = { diagnostics };
|
|
801
|
-
if (only !==
|
|
801
|
+
if (only !== void 0 && only !== null) {
|
|
802
802
|
result.only = only;
|
|
803
803
|
}
|
|
804
|
-
if (triggerKind !==
|
|
804
|
+
if (triggerKind !== void 0 && triggerKind !== null) {
|
|
805
805
|
result.triggerKind = triggerKind;
|
|
806
806
|
}
|
|
807
807
|
return result;
|
|
@@ -809,7 +809,7 @@ var CodeActionContext;
|
|
|
809
809
|
CodeActionContext2.create = create;
|
|
810
810
|
function is(value) {
|
|
811
811
|
let candidate = value;
|
|
812
|
-
return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only ===
|
|
812
|
+
return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only === void 0 || Is.typedArray(candidate.only, Is.string)) && (candidate.triggerKind === void 0 || candidate.triggerKind === CodeActionTriggerKind.Invoked || candidate.triggerKind === CodeActionTriggerKind.Automatic);
|
|
813
813
|
}
|
|
814
814
|
CodeActionContext2.is = is;
|
|
815
815
|
})(CodeActionContext || (CodeActionContext = {}));
|
|
@@ -826,7 +826,7 @@ var CodeAction;
|
|
|
826
826
|
} else {
|
|
827
827
|
result.edit = kindOrCommandOrEdit;
|
|
828
828
|
}
|
|
829
|
-
if (checkKind && kind !==
|
|
829
|
+
if (checkKind && kind !== void 0) {
|
|
830
830
|
result.kind = kind;
|
|
831
831
|
}
|
|
832
832
|
return result;
|
|
@@ -834,7 +834,7 @@ var CodeAction;
|
|
|
834
834
|
CodeAction2.create = create;
|
|
835
835
|
function is(value) {
|
|
836
836
|
let candidate = value;
|
|
837
|
-
return candidate && Is.string(candidate.title) && (candidate.diagnostics ===
|
|
837
|
+
return candidate && Is.string(candidate.title) && (candidate.diagnostics === void 0 || Is.typedArray(candidate.diagnostics, Diagnostic.is)) && (candidate.kind === void 0 || Is.string(candidate.kind)) && (candidate.edit !== void 0 || candidate.command !== void 0) && (candidate.command === void 0 || Command.is(candidate.command)) && (candidate.isPreferred === void 0 || Is.boolean(candidate.isPreferred)) && (candidate.edit === void 0 || WorkspaceEdit.is(candidate.edit));
|
|
838
838
|
}
|
|
839
839
|
CodeAction2.is = is;
|
|
840
840
|
})(CodeAction || (CodeAction = {}));
|
|
@@ -886,7 +886,7 @@ var SelectionRange;
|
|
|
886
886
|
SelectionRange2.create = create;
|
|
887
887
|
function is(value) {
|
|
888
888
|
let candidate = value;
|
|
889
|
-
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (candidate.parent ===
|
|
889
|
+
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (candidate.parent === void 0 || SelectionRange2.is(candidate.parent));
|
|
890
890
|
}
|
|
891
891
|
SelectionRange2.is = is;
|
|
892
892
|
})(SelectionRange || (SelectionRange = {}));
|
|
@@ -933,7 +933,7 @@ var SemanticTokens;
|
|
|
933
933
|
(function(SemanticTokens2) {
|
|
934
934
|
function is(value) {
|
|
935
935
|
const candidate = value;
|
|
936
|
-
return Is.objectLiteral(candidate) && (candidate.resultId ===
|
|
936
|
+
return Is.objectLiteral(candidate) && (candidate.resultId === void 0 || typeof candidate.resultId === "string") && Array.isArray(candidate.data) && (candidate.data.length === 0 || typeof candidate.data[0] === "number");
|
|
937
937
|
}
|
|
938
938
|
SemanticTokens2.is = is;
|
|
939
939
|
})(SemanticTokens || (SemanticTokens = {}));
|
|
@@ -945,7 +945,7 @@ var InlineValueText;
|
|
|
945
945
|
InlineValueText2.create = create;
|
|
946
946
|
function is(value) {
|
|
947
947
|
const candidate = value;
|
|
948
|
-
return candidate !==
|
|
948
|
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.string(candidate.text);
|
|
949
949
|
}
|
|
950
950
|
InlineValueText2.is = is;
|
|
951
951
|
})(InlineValueText || (InlineValueText = {}));
|
|
@@ -957,7 +957,7 @@ var InlineValueVariableLookup;
|
|
|
957
957
|
InlineValueVariableLookup2.create = create;
|
|
958
958
|
function is(value) {
|
|
959
959
|
const candidate = value;
|
|
960
|
-
return candidate !==
|
|
960
|
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.boolean(candidate.caseSensitiveLookup) && (Is.string(candidate.variableName) || candidate.variableName === void 0);
|
|
961
961
|
}
|
|
962
962
|
InlineValueVariableLookup2.is = is;
|
|
963
963
|
})(InlineValueVariableLookup || (InlineValueVariableLookup = {}));
|
|
@@ -969,7 +969,7 @@ var InlineValueEvaluatableExpression;
|
|
|
969
969
|
InlineValueEvaluatableExpression2.create = create;
|
|
970
970
|
function is(value) {
|
|
971
971
|
const candidate = value;
|
|
972
|
-
return candidate !==
|
|
972
|
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && (Is.string(candidate.expression) || candidate.expression === void 0);
|
|
973
973
|
}
|
|
974
974
|
InlineValueEvaluatableExpression2.is = is;
|
|
975
975
|
})(InlineValueEvaluatableExpression || (InlineValueEvaluatableExpression = {}));
|
|
@@ -1002,7 +1002,7 @@ var InlayHintLabelPart;
|
|
|
1002
1002
|
InlayHintLabelPart2.create = create;
|
|
1003
1003
|
function is(value) {
|
|
1004
1004
|
const candidate = value;
|
|
1005
|
-
return Is.objectLiteral(candidate) && (candidate.tooltip ===
|
|
1005
|
+
return Is.objectLiteral(candidate) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.location === void 0 || Location.is(candidate.location)) && (candidate.command === void 0 || Command.is(candidate.command));
|
|
1006
1006
|
}
|
|
1007
1007
|
InlayHintLabelPart2.is = is;
|
|
1008
1008
|
})(InlayHintLabelPart || (InlayHintLabelPart = {}));
|
|
@@ -1010,7 +1010,7 @@ var InlayHint;
|
|
|
1010
1010
|
(function(InlayHint2) {
|
|
1011
1011
|
function create(position, label, kind) {
|
|
1012
1012
|
const result = { position, label };
|
|
1013
|
-
if (kind !==
|
|
1013
|
+
if (kind !== void 0) {
|
|
1014
1014
|
result.kind = kind;
|
|
1015
1015
|
}
|
|
1016
1016
|
return result;
|
|
@@ -1018,7 +1018,7 @@ var InlayHint;
|
|
|
1018
1018
|
InlayHint2.create = create;
|
|
1019
1019
|
function is(value) {
|
|
1020
1020
|
const candidate = value;
|
|
1021
|
-
return Is.objectLiteral(candidate) && Position.is(candidate.position) && (Is.string(candidate.label) || Is.typedArray(candidate.label, InlayHintLabelPart.is)) && (candidate.kind ===
|
|
1021
|
+
return Is.objectLiteral(candidate) && Position.is(candidate.position) && (Is.string(candidate.label) || Is.typedArray(candidate.label, InlayHintLabelPart.is)) && (candidate.kind === void 0 || InlayHintKind.is(candidate.kind)) && candidate.textEdits === void 0 || Is.typedArray(candidate.textEdits, TextEdit.is) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.paddingLeft === void 0 || Is.boolean(candidate.paddingLeft)) && (candidate.paddingRight === void 0 || Is.boolean(candidate.paddingRight));
|
|
1022
1022
|
}
|
|
1023
1023
|
InlayHint2.is = is;
|
|
1024
1024
|
})(InlayHint || (InlayHint = {}));
|
|
@@ -1140,7 +1140,7 @@ var FullTextDocument = class {
|
|
|
1140
1140
|
this._languageId = languageId;
|
|
1141
1141
|
this._version = version;
|
|
1142
1142
|
this._content = content;
|
|
1143
|
-
this._lineOffsets =
|
|
1143
|
+
this._lineOffsets = void 0;
|
|
1144
1144
|
}
|
|
1145
1145
|
get uri() {
|
|
1146
1146
|
return this._uri;
|
|
@@ -1162,10 +1162,10 @@ var FullTextDocument = class {
|
|
|
1162
1162
|
update(event, version) {
|
|
1163
1163
|
this._content = event.text;
|
|
1164
1164
|
this._version = version;
|
|
1165
|
-
this._lineOffsets =
|
|
1165
|
+
this._lineOffsets = void 0;
|
|
1166
1166
|
}
|
|
1167
1167
|
getLineOffsets() {
|
|
1168
|
-
if (this._lineOffsets ===
|
|
1168
|
+
if (this._lineOffsets === void 0) {
|
|
1169
1169
|
let lineOffsets = [];
|
|
1170
1170
|
let text = this._content;
|
|
1171
1171
|
let isLineStart = true;
|
|
@@ -1338,7 +1338,7 @@ var DiagnosticsAdapter = class {
|
|
|
1338
1338
|
if (model && model.getLanguageId() === languageId) {
|
|
1339
1339
|
monaco_editor_core_exports.editor.setModelMarkers(model, languageId, markers);
|
|
1340
1340
|
}
|
|
1341
|
-
}).then(
|
|
1341
|
+
}).then(void 0, (err) => {
|
|
1342
1342
|
console.error(err);
|
|
1343
1343
|
});
|
|
1344
1344
|
}
|
|
@@ -1433,13 +1433,13 @@ var CompletionAdapter = class {
|
|
|
1433
1433
|
};
|
|
1434
1434
|
function fromPosition(position) {
|
|
1435
1435
|
if (!position) {
|
|
1436
|
-
return
|
|
1436
|
+
return void 0;
|
|
1437
1437
|
}
|
|
1438
1438
|
return { character: position.column - 1, line: position.lineNumber - 1 };
|
|
1439
1439
|
}
|
|
1440
1440
|
function fromRange(range) {
|
|
1441
1441
|
if (!range) {
|
|
1442
|
-
return
|
|
1442
|
+
return void 0;
|
|
1443
1443
|
}
|
|
1444
1444
|
return {
|
|
1445
1445
|
start: {
|
|
@@ -1451,7 +1451,7 @@ function fromRange(range) {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
function toRange(range) {
|
|
1453
1453
|
if (!range) {
|
|
1454
|
-
return
|
|
1454
|
+
return void 0;
|
|
1455
1455
|
}
|
|
1456
1456
|
return new monaco_editor_core_exports.Range(
|
|
1457
1457
|
range.start.line + 1,
|
|
@@ -1507,7 +1507,7 @@ function toCompletionItemKind(kind) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
function toTextEdit(textEdit) {
|
|
1509
1509
|
if (!textEdit) {
|
|
1510
|
-
return
|
|
1510
|
+
return void 0;
|
|
1511
1511
|
}
|
|
1512
1512
|
return {
|
|
1513
1513
|
range: toRange(textEdit.range),
|
|
@@ -1515,7 +1515,7 @@ function toTextEdit(textEdit) {
|
|
|
1515
1515
|
};
|
|
1516
1516
|
}
|
|
1517
1517
|
function toCommand(c) {
|
|
1518
|
-
return c && c.command === "editor.action.triggerSuggest" ? { id: c.command, title: c.title, arguments: c.arguments } :
|
|
1518
|
+
return c && c.command === "editor.action.triggerSuggest" ? { id: c.command, title: c.title, arguments: c.arguments } : void 0;
|
|
1519
1519
|
}
|
|
1520
1520
|
var HoverAdapter = class {
|
|
1521
1521
|
constructor(_worker) {
|
|
@@ -1559,7 +1559,7 @@ function toMarkdownString(entry) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
function toMarkedStringArray(contents) {
|
|
1561
1561
|
if (!contents) {
|
|
1562
|
-
return
|
|
1562
|
+
return void 0;
|
|
1563
1563
|
}
|
|
1564
1564
|
if (Array.isArray(contents)) {
|
|
1565
1565
|
return contents.map(toMarkdownString);
|
|
@@ -1649,7 +1649,7 @@ var RenameAdapter = class {
|
|
|
1649
1649
|
};
|
|
1650
1650
|
function toWorkspaceEdit(edit) {
|
|
1651
1651
|
if (!edit || !edit.changes) {
|
|
1652
|
-
return
|
|
1652
|
+
return void 0;
|
|
1653
1653
|
}
|
|
1654
1654
|
let resourceEdits = [];
|
|
1655
1655
|
for (let uri in edit.changes) {
|
|
@@ -1657,7 +1657,7 @@ function toWorkspaceEdit(edit) {
|
|
|
1657
1657
|
for (let e of edit.changes[uri]) {
|
|
1658
1658
|
resourceEdits.push({
|
|
1659
1659
|
resource: _uri,
|
|
1660
|
-
versionId:
|
|
1660
|
+
versionId: void 0,
|
|
1661
1661
|
textEdit: {
|
|
1662
1662
|
range: toRange(e.range),
|
|
1663
1663
|
text: e.newText
|
|
@@ -1881,7 +1881,7 @@ function toFoldingRangeKind(kind) {
|
|
|
1881
1881
|
case FoldingRangeKind.Region:
|
|
1882
1882
|
return monaco_editor_core_exports.languages.FoldingRangeKind.Region;
|
|
1883
1883
|
}
|
|
1884
|
-
return
|
|
1884
|
+
return void 0;
|
|
1885
1885
|
}
|
|
1886
1886
|
var SelectionRangeAdapter = class {
|
|
1887
1887
|
constructor(_worker) {
|
package/index.js
CHANGED
|
@@ -62,7 +62,7 @@ var formatDefaults = {
|
|
|
62
62
|
contentUnformatted: "pre",
|
|
63
63
|
indentInnerHtml: false,
|
|
64
64
|
preserveNewLines: true,
|
|
65
|
-
maxPreserveNewLines:
|
|
65
|
+
maxPreserveNewLines: void 0,
|
|
66
66
|
indentHandlebars: false,
|
|
67
67
|
endWithNewline: false,
|
|
68
68
|
extraLiners: "head, body, /html",
|
|
@@ -138,7 +138,7 @@ function registerHTMLLanguageService(languageId, options = optionsDefault, modeC
|
|
|
138
138
|
dispose() {
|
|
139
139
|
onLanguageListener.dispose();
|
|
140
140
|
mode?.dispose();
|
|
141
|
-
mode =
|
|
141
|
+
mode = void 0;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-standalone-html-language-features",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.7",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"main": "index.js",
|
|
26
26
|
"module": "index.js",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@13.1.
|
|
28
|
+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@13.1.7"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/worker.js
CHANGED
|
@@ -279,7 +279,7 @@ var Diagnostic;
|
|
|
279
279
|
function is(value) {
|
|
280
280
|
var _a2;
|
|
281
281
|
let candidate = value;
|
|
282
|
-
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a2 = candidate.codeDescription) === null || _a2 ===
|
|
282
|
+
return Is.defined(candidate) && Range.is(candidate.range) && Is.string(candidate.message) && (Is.number(candidate.severity) || Is.undefined(candidate.severity)) && (Is.integer(candidate.code) || Is.string(candidate.code) || Is.undefined(candidate.code)) && (Is.undefined(candidate.codeDescription) || Is.string((_a2 = candidate.codeDescription) === null || _a2 === void 0 ? void 0 : _a2.href)) && (Is.string(candidate.source) || Is.undefined(candidate.source)) && (Is.undefined(candidate.relatedInformation) || Is.typedArray(candidate.relatedInformation, DiagnosticRelatedInformation.is));
|
|
283
283
|
}
|
|
284
284
|
Diagnostic2.is = is;
|
|
285
285
|
})(Diagnostic || (Diagnostic = {}));
|
|
@@ -323,10 +323,10 @@ var ChangeAnnotation;
|
|
|
323
323
|
(function(ChangeAnnotation2) {
|
|
324
324
|
function create(label, needsConfirmation, description) {
|
|
325
325
|
const result = { label };
|
|
326
|
-
if (needsConfirmation !==
|
|
326
|
+
if (needsConfirmation !== void 0) {
|
|
327
327
|
result.needsConfirmation = needsConfirmation;
|
|
328
328
|
}
|
|
329
|
-
if (description !==
|
|
329
|
+
if (description !== void 0) {
|
|
330
330
|
result.description = description;
|
|
331
331
|
}
|
|
332
332
|
return result;
|
|
@@ -334,7 +334,7 @@ var ChangeAnnotation;
|
|
|
334
334
|
ChangeAnnotation2.create = create;
|
|
335
335
|
function is(value) {
|
|
336
336
|
const candidate = value;
|
|
337
|
-
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.boolean(candidate.needsConfirmation) || candidate.needsConfirmation ===
|
|
337
|
+
return Is.objectLiteral(candidate) && Is.string(candidate.label) && (Is.boolean(candidate.needsConfirmation) || candidate.needsConfirmation === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
|
338
338
|
}
|
|
339
339
|
ChangeAnnotation2.is = is;
|
|
340
340
|
})(ChangeAnnotation || (ChangeAnnotation = {}));
|
|
@@ -385,10 +385,10 @@ var CreateFile;
|
|
|
385
385
|
kind: "create",
|
|
386
386
|
uri
|
|
387
387
|
};
|
|
388
|
-
if (options !==
|
|
388
|
+
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
|
389
389
|
result.options = options;
|
|
390
390
|
}
|
|
391
|
-
if (annotation !==
|
|
391
|
+
if (annotation !== void 0) {
|
|
392
392
|
result.annotationId = annotation;
|
|
393
393
|
}
|
|
394
394
|
return result;
|
|
@@ -396,7 +396,7 @@ var CreateFile;
|
|
|
396
396
|
CreateFile2.create = create;
|
|
397
397
|
function is(value) {
|
|
398
398
|
let candidate = value;
|
|
399
|
-
return candidate && candidate.kind === "create" && Is.string(candidate.uri) && (candidate.options ===
|
|
399
|
+
return candidate && candidate.kind === "create" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
400
400
|
}
|
|
401
401
|
CreateFile2.is = is;
|
|
402
402
|
})(CreateFile || (CreateFile = {}));
|
|
@@ -408,10 +408,10 @@ var RenameFile;
|
|
|
408
408
|
oldUri,
|
|
409
409
|
newUri
|
|
410
410
|
};
|
|
411
|
-
if (options !==
|
|
411
|
+
if (options !== void 0 && (options.overwrite !== void 0 || options.ignoreIfExists !== void 0)) {
|
|
412
412
|
result.options = options;
|
|
413
413
|
}
|
|
414
|
-
if (annotation !==
|
|
414
|
+
if (annotation !== void 0) {
|
|
415
415
|
result.annotationId = annotation;
|
|
416
416
|
}
|
|
417
417
|
return result;
|
|
@@ -419,7 +419,7 @@ var RenameFile;
|
|
|
419
419
|
RenameFile2.create = create;
|
|
420
420
|
function is(value) {
|
|
421
421
|
let candidate = value;
|
|
422
|
-
return candidate && candidate.kind === "rename" && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && (candidate.options ===
|
|
422
|
+
return candidate && candidate.kind === "rename" && Is.string(candidate.oldUri) && Is.string(candidate.newUri) && (candidate.options === void 0 || (candidate.options.overwrite === void 0 || Is.boolean(candidate.options.overwrite)) && (candidate.options.ignoreIfExists === void 0 || Is.boolean(candidate.options.ignoreIfExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
423
423
|
}
|
|
424
424
|
RenameFile2.is = is;
|
|
425
425
|
})(RenameFile || (RenameFile = {}));
|
|
@@ -430,10 +430,10 @@ var DeleteFile;
|
|
|
430
430
|
kind: "delete",
|
|
431
431
|
uri
|
|
432
432
|
};
|
|
433
|
-
if (options !==
|
|
433
|
+
if (options !== void 0 && (options.recursive !== void 0 || options.ignoreIfNotExists !== void 0)) {
|
|
434
434
|
result.options = options;
|
|
435
435
|
}
|
|
436
|
-
if (annotation !==
|
|
436
|
+
if (annotation !== void 0) {
|
|
437
437
|
result.annotationId = annotation;
|
|
438
438
|
}
|
|
439
439
|
return result;
|
|
@@ -441,7 +441,7 @@ var DeleteFile;
|
|
|
441
441
|
DeleteFile2.create = create;
|
|
442
442
|
function is(value) {
|
|
443
443
|
let candidate = value;
|
|
444
|
-
return candidate && candidate.kind === "delete" && Is.string(candidate.uri) && (candidate.options ===
|
|
444
|
+
return candidate && candidate.kind === "delete" && Is.string(candidate.uri) && (candidate.options === void 0 || (candidate.options.recursive === void 0 || Is.boolean(candidate.options.recursive)) && (candidate.options.ignoreIfNotExists === void 0 || Is.boolean(candidate.options.ignoreIfNotExists))) && (candidate.annotationId === void 0 || ChangeAnnotationIdentifier.is(candidate.annotationId));
|
|
445
445
|
}
|
|
446
446
|
DeleteFile2.is = is;
|
|
447
447
|
})(DeleteFile || (DeleteFile = {}));
|
|
@@ -449,7 +449,7 @@ var WorkspaceEdit;
|
|
|
449
449
|
(function(WorkspaceEdit2) {
|
|
450
450
|
function is(value) {
|
|
451
451
|
let candidate = value;
|
|
452
|
-
return candidate && (candidate.changes !==
|
|
452
|
+
return candidate && (candidate.changes !== void 0 || candidate.documentChanges !== void 0) && (candidate.documentChanges === void 0 || candidate.documentChanges.every((change) => {
|
|
453
453
|
if (Is.string(change.kind)) {
|
|
454
454
|
return CreateFile.is(change) || RenameFile.is(change) || DeleteFile.is(change);
|
|
455
455
|
} else {
|
|
@@ -583,7 +583,7 @@ var CompletionItemLabelDetails;
|
|
|
583
583
|
(function(CompletionItemLabelDetails2) {
|
|
584
584
|
function is(value) {
|
|
585
585
|
const candidate = value;
|
|
586
|
-
return candidate && (Is.string(candidate.detail) || candidate.detail ===
|
|
586
|
+
return candidate && (Is.string(candidate.detail) || candidate.detail === void 0) && (Is.string(candidate.description) || candidate.description === void 0);
|
|
587
587
|
}
|
|
588
588
|
CompletionItemLabelDetails2.is = is;
|
|
589
589
|
})(CompletionItemLabelDetails || (CompletionItemLabelDetails = {}));
|
|
@@ -617,7 +617,7 @@ var Hover;
|
|
|
617
617
|
(function(Hover2) {
|
|
618
618
|
function is(value) {
|
|
619
619
|
let candidate = value;
|
|
620
|
-
return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || Is.typedArray(candidate.contents, MarkedString.is)) && (value.range ===
|
|
620
|
+
return !!candidate && Is.objectLiteral(candidate) && (MarkupContent.is(candidate.contents) || MarkedString.is(candidate.contents) || Is.typedArray(candidate.contents, MarkedString.is)) && (value.range === void 0 || Range.is(value.range));
|
|
621
621
|
}
|
|
622
622
|
Hover2.is = is;
|
|
623
623
|
})(Hover || (Hover = {}));
|
|
@@ -712,7 +712,7 @@ var SymbolInformation;
|
|
|
712
712
|
var WorkspaceSymbol;
|
|
713
713
|
(function(WorkspaceSymbol2) {
|
|
714
714
|
function create(name, kind, uri, range) {
|
|
715
|
-
return range !==
|
|
715
|
+
return range !== void 0 ? { name, kind, location: { uri, range } } : { name, kind, location: { uri } };
|
|
716
716
|
}
|
|
717
717
|
WorkspaceSymbol2.create = create;
|
|
718
718
|
})(WorkspaceSymbol || (WorkspaceSymbol = {}));
|
|
@@ -726,7 +726,7 @@ var DocumentSymbol;
|
|
|
726
726
|
range,
|
|
727
727
|
selectionRange
|
|
728
728
|
};
|
|
729
|
-
if (children !==
|
|
729
|
+
if (children !== void 0) {
|
|
730
730
|
result.children = children;
|
|
731
731
|
}
|
|
732
732
|
return result;
|
|
@@ -734,7 +734,7 @@ var DocumentSymbol;
|
|
|
734
734
|
DocumentSymbol2.create = create;
|
|
735
735
|
function is(value) {
|
|
736
736
|
let candidate = value;
|
|
737
|
-
return candidate && Is.string(candidate.name) && Is.number(candidate.kind) && Range.is(candidate.range) && Range.is(candidate.selectionRange) && (candidate.detail ===
|
|
737
|
+
return candidate && Is.string(candidate.name) && Is.number(candidate.kind) && Range.is(candidate.range) && Range.is(candidate.selectionRange) && (candidate.detail === void 0 || Is.string(candidate.detail)) && (candidate.deprecated === void 0 || Is.boolean(candidate.deprecated)) && (candidate.children === void 0 || Array.isArray(candidate.children)) && (candidate.tags === void 0 || Array.isArray(candidate.tags));
|
|
738
738
|
}
|
|
739
739
|
DocumentSymbol2.is = is;
|
|
740
740
|
})(DocumentSymbol || (DocumentSymbol = {}));
|
|
@@ -759,10 +759,10 @@ var CodeActionContext;
|
|
|
759
759
|
(function(CodeActionContext2) {
|
|
760
760
|
function create(diagnostics, only, triggerKind) {
|
|
761
761
|
let result = { diagnostics };
|
|
762
|
-
if (only !==
|
|
762
|
+
if (only !== void 0 && only !== null) {
|
|
763
763
|
result.only = only;
|
|
764
764
|
}
|
|
765
|
-
if (triggerKind !==
|
|
765
|
+
if (triggerKind !== void 0 && triggerKind !== null) {
|
|
766
766
|
result.triggerKind = triggerKind;
|
|
767
767
|
}
|
|
768
768
|
return result;
|
|
@@ -770,7 +770,7 @@ var CodeActionContext;
|
|
|
770
770
|
CodeActionContext2.create = create;
|
|
771
771
|
function is(value) {
|
|
772
772
|
let candidate = value;
|
|
773
|
-
return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only ===
|
|
773
|
+
return Is.defined(candidate) && Is.typedArray(candidate.diagnostics, Diagnostic.is) && (candidate.only === void 0 || Is.typedArray(candidate.only, Is.string)) && (candidate.triggerKind === void 0 || candidate.triggerKind === CodeActionTriggerKind.Invoked || candidate.triggerKind === CodeActionTriggerKind.Automatic);
|
|
774
774
|
}
|
|
775
775
|
CodeActionContext2.is = is;
|
|
776
776
|
})(CodeActionContext || (CodeActionContext = {}));
|
|
@@ -787,7 +787,7 @@ var CodeAction;
|
|
|
787
787
|
} else {
|
|
788
788
|
result.edit = kindOrCommandOrEdit;
|
|
789
789
|
}
|
|
790
|
-
if (checkKind && kind !==
|
|
790
|
+
if (checkKind && kind !== void 0) {
|
|
791
791
|
result.kind = kind;
|
|
792
792
|
}
|
|
793
793
|
return result;
|
|
@@ -795,7 +795,7 @@ var CodeAction;
|
|
|
795
795
|
CodeAction2.create = create;
|
|
796
796
|
function is(value) {
|
|
797
797
|
let candidate = value;
|
|
798
|
-
return candidate && Is.string(candidate.title) && (candidate.diagnostics ===
|
|
798
|
+
return candidate && Is.string(candidate.title) && (candidate.diagnostics === void 0 || Is.typedArray(candidate.diagnostics, Diagnostic.is)) && (candidate.kind === void 0 || Is.string(candidate.kind)) && (candidate.edit !== void 0 || candidate.command !== void 0) && (candidate.command === void 0 || Command.is(candidate.command)) && (candidate.isPreferred === void 0 || Is.boolean(candidate.isPreferred)) && (candidate.edit === void 0 || WorkspaceEdit.is(candidate.edit));
|
|
799
799
|
}
|
|
800
800
|
CodeAction2.is = is;
|
|
801
801
|
})(CodeAction || (CodeAction = {}));
|
|
@@ -847,7 +847,7 @@ var SelectionRange;
|
|
|
847
847
|
SelectionRange2.create = create;
|
|
848
848
|
function is(value) {
|
|
849
849
|
let candidate = value;
|
|
850
|
-
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (candidate.parent ===
|
|
850
|
+
return Is.objectLiteral(candidate) && Range.is(candidate.range) && (candidate.parent === void 0 || SelectionRange2.is(candidate.parent));
|
|
851
851
|
}
|
|
852
852
|
SelectionRange2.is = is;
|
|
853
853
|
})(SelectionRange || (SelectionRange = {}));
|
|
@@ -894,7 +894,7 @@ var SemanticTokens;
|
|
|
894
894
|
(function(SemanticTokens2) {
|
|
895
895
|
function is(value) {
|
|
896
896
|
const candidate = value;
|
|
897
|
-
return Is.objectLiteral(candidate) && (candidate.resultId ===
|
|
897
|
+
return Is.objectLiteral(candidate) && (candidate.resultId === void 0 || typeof candidate.resultId === "string") && Array.isArray(candidate.data) && (candidate.data.length === 0 || typeof candidate.data[0] === "number");
|
|
898
898
|
}
|
|
899
899
|
SemanticTokens2.is = is;
|
|
900
900
|
})(SemanticTokens || (SemanticTokens = {}));
|
|
@@ -906,7 +906,7 @@ var InlineValueText;
|
|
|
906
906
|
InlineValueText2.create = create;
|
|
907
907
|
function is(value) {
|
|
908
908
|
const candidate = value;
|
|
909
|
-
return candidate !==
|
|
909
|
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.string(candidate.text);
|
|
910
910
|
}
|
|
911
911
|
InlineValueText2.is = is;
|
|
912
912
|
})(InlineValueText || (InlineValueText = {}));
|
|
@@ -918,7 +918,7 @@ var InlineValueVariableLookup;
|
|
|
918
918
|
InlineValueVariableLookup2.create = create;
|
|
919
919
|
function is(value) {
|
|
920
920
|
const candidate = value;
|
|
921
|
-
return candidate !==
|
|
921
|
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && Is.boolean(candidate.caseSensitiveLookup) && (Is.string(candidate.variableName) || candidate.variableName === void 0);
|
|
922
922
|
}
|
|
923
923
|
InlineValueVariableLookup2.is = is;
|
|
924
924
|
})(InlineValueVariableLookup || (InlineValueVariableLookup = {}));
|
|
@@ -930,7 +930,7 @@ var InlineValueEvaluatableExpression;
|
|
|
930
930
|
InlineValueEvaluatableExpression2.create = create;
|
|
931
931
|
function is(value) {
|
|
932
932
|
const candidate = value;
|
|
933
|
-
return candidate !==
|
|
933
|
+
return candidate !== void 0 && candidate !== null && Range.is(candidate.range) && (Is.string(candidate.expression) || candidate.expression === void 0);
|
|
934
934
|
}
|
|
935
935
|
InlineValueEvaluatableExpression2.is = is;
|
|
936
936
|
})(InlineValueEvaluatableExpression || (InlineValueEvaluatableExpression = {}));
|
|
@@ -963,7 +963,7 @@ var InlayHintLabelPart;
|
|
|
963
963
|
InlayHintLabelPart2.create = create;
|
|
964
964
|
function is(value) {
|
|
965
965
|
const candidate = value;
|
|
966
|
-
return Is.objectLiteral(candidate) && (candidate.tooltip ===
|
|
966
|
+
return Is.objectLiteral(candidate) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.location === void 0 || Location.is(candidate.location)) && (candidate.command === void 0 || Command.is(candidate.command));
|
|
967
967
|
}
|
|
968
968
|
InlayHintLabelPart2.is = is;
|
|
969
969
|
})(InlayHintLabelPart || (InlayHintLabelPart = {}));
|
|
@@ -971,7 +971,7 @@ var InlayHint;
|
|
|
971
971
|
(function(InlayHint2) {
|
|
972
972
|
function create(position, label, kind) {
|
|
973
973
|
const result = { position, label };
|
|
974
|
-
if (kind !==
|
|
974
|
+
if (kind !== void 0) {
|
|
975
975
|
result.kind = kind;
|
|
976
976
|
}
|
|
977
977
|
return result;
|
|
@@ -979,7 +979,7 @@ var InlayHint;
|
|
|
979
979
|
InlayHint2.create = create;
|
|
980
980
|
function is(value) {
|
|
981
981
|
const candidate = value;
|
|
982
|
-
return Is.objectLiteral(candidate) && Position.is(candidate.position) && (Is.string(candidate.label) || Is.typedArray(candidate.label, InlayHintLabelPart.is)) && (candidate.kind ===
|
|
982
|
+
return Is.objectLiteral(candidate) && Position.is(candidate.position) && (Is.string(candidate.label) || Is.typedArray(candidate.label, InlayHintLabelPart.is)) && (candidate.kind === void 0 || InlayHintKind.is(candidate.kind)) && candidate.textEdits === void 0 || Is.typedArray(candidate.textEdits, TextEdit.is) && (candidate.tooltip === void 0 || Is.string(candidate.tooltip) || MarkupContent.is(candidate.tooltip)) && (candidate.paddingLeft === void 0 || Is.boolean(candidate.paddingLeft)) && (candidate.paddingRight === void 0 || Is.boolean(candidate.paddingRight));
|
|
983
983
|
}
|
|
984
984
|
InlayHint2.is = is;
|
|
985
985
|
})(InlayHint || (InlayHint = {}));
|
|
@@ -1101,7 +1101,7 @@ var FullTextDocument = class {
|
|
|
1101
1101
|
this._languageId = languageId;
|
|
1102
1102
|
this._version = version;
|
|
1103
1103
|
this._content = content;
|
|
1104
|
-
this._lineOffsets =
|
|
1104
|
+
this._lineOffsets = void 0;
|
|
1105
1105
|
}
|
|
1106
1106
|
get uri() {
|
|
1107
1107
|
return this._uri;
|
|
@@ -1123,10 +1123,10 @@ var FullTextDocument = class {
|
|
|
1123
1123
|
update(event, version) {
|
|
1124
1124
|
this._content = event.text;
|
|
1125
1125
|
this._version = version;
|
|
1126
|
-
this._lineOffsets =
|
|
1126
|
+
this._lineOffsets = void 0;
|
|
1127
1127
|
}
|
|
1128
1128
|
getLineOffsets() {
|
|
1129
|
-
if (this._lineOffsets ===
|
|
1129
|
+
if (this._lineOffsets === void 0) {
|
|
1130
1130
|
let lineOffsets = [];
|
|
1131
1131
|
let text = this._content;
|
|
1132
1132
|
let isLineStart = true;
|
|
@@ -1237,7 +1237,7 @@ var FullTextDocument2 = class _FullTextDocument {
|
|
|
1237
1237
|
this._languageId = languageId;
|
|
1238
1238
|
this._version = version;
|
|
1239
1239
|
this._content = content;
|
|
1240
|
-
this._lineOffsets =
|
|
1240
|
+
this._lineOffsets = void 0;
|
|
1241
1241
|
}
|
|
1242
1242
|
get uri() {
|
|
1243
1243
|
return this._uri;
|
|
@@ -1286,7 +1286,7 @@ var FullTextDocument2 = class _FullTextDocument {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
} else if (_FullTextDocument.isFull(change)) {
|
|
1288
1288
|
this._content = change.text;
|
|
1289
|
-
this._lineOffsets =
|
|
1289
|
+
this._lineOffsets = void 0;
|
|
1290
1290
|
} else {
|
|
1291
1291
|
throw new Error("Unknown change event received");
|
|
1292
1292
|
}
|
|
@@ -1294,7 +1294,7 @@ var FullTextDocument2 = class _FullTextDocument {
|
|
|
1294
1294
|
this._version = version;
|
|
1295
1295
|
}
|
|
1296
1296
|
getLineOffsets() {
|
|
1297
|
-
if (this._lineOffsets ===
|
|
1297
|
+
if (this._lineOffsets === void 0) {
|
|
1298
1298
|
this._lineOffsets = computeLineOffsets(this._content, true);
|
|
1299
1299
|
}
|
|
1300
1300
|
return this._lineOffsets;
|
|
@@ -1333,11 +1333,11 @@ var FullTextDocument2 = class _FullTextDocument {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
static isIncremental(event) {
|
|
1335
1335
|
let candidate = event;
|
|
1336
|
-
return candidate !==
|
|
1336
|
+
return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range !== void 0 && (candidate.rangeLength === void 0 || typeof candidate.rangeLength === "number");
|
|
1337
1337
|
}
|
|
1338
1338
|
static isFull(event) {
|
|
1339
1339
|
let candidate = event;
|
|
1340
|
-
return candidate !==
|
|
1340
|
+
return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range === void 0 && candidate.rangeLength === void 0;
|
|
1341
1341
|
}
|
|
1342
1342
|
};
|
|
1343
1343
|
var TextDocument2;
|
|
@@ -1737,8 +1737,8 @@ function createScanner(input, initialOffset = 0, initialState = ScannerState.Wit
|
|
|
1737
1737
|
break;
|
|
1738
1738
|
case ScannerState.AfterOpeningStartTag:
|
|
1739
1739
|
lastTag = nextElementName();
|
|
1740
|
-
lastTypeValue =
|
|
1741
|
-
lastAttributeName =
|
|
1740
|
+
lastTypeValue = void 0;
|
|
1741
|
+
lastAttributeName = void 0;
|
|
1742
1742
|
if (lastTag.length > 0) {
|
|
1743
1743
|
hasSpaceAfterTag = false;
|
|
1744
1744
|
state = ScannerState.WithinTag;
|
|
@@ -1936,17 +1936,17 @@ var Node = class {
|
|
|
1936
1936
|
this.closed = false;
|
|
1937
1937
|
}
|
|
1938
1938
|
isSameTag(tagInLowerCase) {
|
|
1939
|
-
if (this.tag ===
|
|
1940
|
-
return tagInLowerCase ===
|
|
1939
|
+
if (this.tag === void 0) {
|
|
1940
|
+
return tagInLowerCase === void 0;
|
|
1941
1941
|
} else {
|
|
1942
|
-
return tagInLowerCase !==
|
|
1942
|
+
return tagInLowerCase !== void 0 && this.tag.length === tagInLowerCase.length && this.tag.toLowerCase() === tagInLowerCase;
|
|
1943
1943
|
}
|
|
1944
1944
|
}
|
|
1945
1945
|
get firstChild() {
|
|
1946
1946
|
return this.children[0];
|
|
1947
1947
|
}
|
|
1948
1948
|
get lastChild() {
|
|
1949
|
-
return this.children.length ? this.children[this.children.length - 1] :
|
|
1949
|
+
return this.children.length ? this.children[this.children.length - 1] : void 0;
|
|
1950
1950
|
}
|
|
1951
1951
|
findNodeBefore(offset) {
|
|
1952
1952
|
const idx = findFirst(this.children, (c) => offset <= c.start) - 1;
|
|
@@ -1984,11 +1984,11 @@ var HTMLParser = class {
|
|
|
1984
1984
|
return this.parse(document.getText(), this.dataManager.getVoidElements(document.languageId));
|
|
1985
1985
|
}
|
|
1986
1986
|
parse(text, voidElements) {
|
|
1987
|
-
const scanner = createScanner(text,
|
|
1988
|
-
const htmlDocument = new Node(0, text.length, [],
|
|
1987
|
+
const scanner = createScanner(text, void 0, void 0, true);
|
|
1988
|
+
const htmlDocument = new Node(0, text.length, [], void 0);
|
|
1989
1989
|
let curr = htmlDocument;
|
|
1990
1990
|
let endTagStart = -1;
|
|
1991
|
-
let endTagName =
|
|
1991
|
+
let endTagName = void 0;
|
|
1992
1992
|
let pendingAttribute = null;
|
|
1993
1993
|
let token = scanner.scan();
|
|
1994
1994
|
while (token !== TokenType.EOS) {
|
|
@@ -2025,7 +2025,7 @@ var HTMLParser = class {
|
|
|
2025
2025
|
break;
|
|
2026
2026
|
case TokenType.EndTagOpen:
|
|
2027
2027
|
endTagStart = scanner.getTokenOffset();
|
|
2028
|
-
endTagName =
|
|
2028
|
+
endTagName = void 0;
|
|
2029
2029
|
break;
|
|
2030
2030
|
case TokenType.EndTag:
|
|
2031
2031
|
endTagName = scanner.getTokenText().toLowerCase();
|
|
@@ -4368,7 +4368,7 @@ function isDefined(obj) {
|
|
|
4368
4368
|
// node_modules/vscode-html-languageservice/lib/esm/utils/markup.js
|
|
4369
4369
|
function normalizeMarkupContent(input) {
|
|
4370
4370
|
if (!input) {
|
|
4371
|
-
return
|
|
4371
|
+
return void 0;
|
|
4372
4372
|
}
|
|
4373
4373
|
if (typeof input === "string") {
|
|
4374
4374
|
return {
|
|
@@ -4483,7 +4483,7 @@ function generateDocumentation(item, settings = {}, doesSupportMarkdown) {
|
|
|
4483
4483
|
}
|
|
4484
4484
|
}
|
|
4485
4485
|
if (result.value === "") {
|
|
4486
|
-
return
|
|
4486
|
+
return void 0;
|
|
4487
4487
|
}
|
|
4488
4488
|
return result;
|
|
4489
4489
|
}
|
|
@@ -4662,7 +4662,7 @@ var HTMLCompletion = class {
|
|
|
4662
4662
|
result.items.push({
|
|
4663
4663
|
label: tag.name,
|
|
4664
4664
|
kind: CompletionItemKind.Property,
|
|
4665
|
-
documentation: generateDocumentation(tag,
|
|
4665
|
+
documentation: generateDocumentation(tag, void 0, doesSupportMarkdown),
|
|
4666
4666
|
textEdit: TextEdit.replace(range, tag.name),
|
|
4667
4667
|
insertTextFormat: InsertTextFormat.PlainText
|
|
4668
4668
|
});
|
|
@@ -4721,7 +4721,7 @@ var HTMLCompletion = class {
|
|
|
4721
4721
|
result.items.push({
|
|
4722
4722
|
label: "/" + tag.name,
|
|
4723
4723
|
kind: CompletionItemKind.Property,
|
|
4724
|
-
documentation: generateDocumentation(tag,
|
|
4724
|
+
documentation: generateDocumentation(tag, void 0, doesSupportMarkdown),
|
|
4725
4725
|
filterText: "/" + tag.name + closeTag,
|
|
4726
4726
|
textEdit: TextEdit.replace(range, "/" + tag.name + closeTag),
|
|
4727
4727
|
insertTextFormat: InsertTextFormat.PlainText
|
|
@@ -4798,7 +4798,7 @@ var HTMLCompletion = class {
|
|
|
4798
4798
|
result.items.push({
|
|
4799
4799
|
label: attr.name,
|
|
4800
4800
|
kind: attr.valueSet === "handler" ? CompletionItemKind.Function : CompletionItemKind.Value,
|
|
4801
|
-
documentation: generateDocumentation(attr,
|
|
4801
|
+
documentation: generateDocumentation(attr, void 0, doesSupportMarkdown),
|
|
4802
4802
|
textEdit: TextEdit.replace(range, codeSnippet),
|
|
4803
4803
|
insertTextFormat: InsertTextFormat.Snippet,
|
|
4804
4804
|
command
|
|
@@ -4867,7 +4867,7 @@ var HTMLCompletion = class {
|
|
|
4867
4867
|
label: value.name,
|
|
4868
4868
|
filterText: insertText,
|
|
4869
4869
|
kind: CompletionItemKind.Unit,
|
|
4870
|
-
documentation: generateDocumentation(value,
|
|
4870
|
+
documentation: generateDocumentation(value, void 0, doesSupportMarkdown),
|
|
4871
4871
|
textEdit: TextEdit.replace(range, insertText),
|
|
4872
4872
|
insertTextFormat: InsertTextFormat.PlainText
|
|
4873
4873
|
});
|
|
@@ -5334,7 +5334,7 @@ var HTMLHover = class {
|
|
|
5334
5334
|
function scanAttrAndAttrValue(nodeStart, attrValueStart) {
|
|
5335
5335
|
const scanner = createScanner(document.getText(), nodeStart);
|
|
5336
5336
|
let token = scanner.scan();
|
|
5337
|
-
let prevAttr =
|
|
5337
|
+
let prevAttr = void 0;
|
|
5338
5338
|
while (token !== TokenType.EOS && scanner.getTokenEnd() <= attrValueStart) {
|
|
5339
5339
|
token = scanner.scan();
|
|
5340
5340
|
if (token === TokenType.AttributeName) {
|
|
@@ -5698,7 +5698,7 @@ var legacy_beautify_css;
|
|
|
5698
5698
|
this.current_line._remove_wrap_indent();
|
|
5699
5699
|
};
|
|
5700
5700
|
Output.prototype.trim = function(eat_newlines) {
|
|
5701
|
-
eat_newlines = eat_newlines ===
|
|
5701
|
+
eat_newlines = eat_newlines === void 0 ? false : eat_newlines;
|
|
5702
5702
|
this.current_line.trim();
|
|
5703
5703
|
while (eat_newlines && this.__lines.length > 1 && this.current_line.is_empty()) {
|
|
5704
5704
|
this.__lines.pop();
|
|
@@ -5773,7 +5773,7 @@ var legacy_beautify_css;
|
|
|
5773
5773
|
};
|
|
5774
5774
|
Options.prototype._get_boolean = function(name, default_value) {
|
|
5775
5775
|
var option_value = this.raw_options[name];
|
|
5776
|
-
var result = option_value ===
|
|
5776
|
+
var result = option_value === void 0 ? !!default_value : !!option_value;
|
|
5777
5777
|
return result;
|
|
5778
5778
|
};
|
|
5779
5779
|
Options.prototype._get_characters = function(name, default_value) {
|
|
@@ -6466,7 +6466,7 @@ var legacy_beautify_css;
|
|
|
6466
6466
|
var __webpack_module_cache__ = {};
|
|
6467
6467
|
function __webpack_require__(moduleId) {
|
|
6468
6468
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
6469
|
-
if (cachedModule !==
|
|
6469
|
+
if (cachedModule !== void 0) {
|
|
6470
6470
|
return cachedModule.exports;
|
|
6471
6471
|
}
|
|
6472
6472
|
var module = __webpack_module_cache__[moduleId] = {
|
|
@@ -6781,7 +6781,7 @@ var legacy_beautify_html;
|
|
|
6781
6781
|
this.current_line._remove_wrap_indent();
|
|
6782
6782
|
};
|
|
6783
6783
|
Output.prototype.trim = function(eat_newlines) {
|
|
6784
|
-
eat_newlines = eat_newlines ===
|
|
6784
|
+
eat_newlines = eat_newlines === void 0 ? false : eat_newlines;
|
|
6785
6785
|
this.current_line.trim();
|
|
6786
6786
|
while (eat_newlines && this.__lines.length > 1 && this.current_line.is_empty()) {
|
|
6787
6787
|
this.__lines.pop();
|
|
@@ -6873,7 +6873,7 @@ var legacy_beautify_html;
|
|
|
6873
6873
|
};
|
|
6874
6874
|
Options.prototype._get_boolean = function(name, default_value) {
|
|
6875
6875
|
var option_value = this.raw_options[name];
|
|
6876
|
-
var result = option_value ===
|
|
6876
|
+
var result = option_value === void 0 ? !!default_value : !!option_value;
|
|
6877
6877
|
return result;
|
|
6878
6878
|
};
|
|
6879
6879
|
Options.prototype._get_characters = function(name, default_value) {
|
|
@@ -8586,7 +8586,7 @@ var legacy_beautify_html;
|
|
|
8586
8586
|
var __webpack_module_cache__ = {};
|
|
8587
8587
|
function __webpack_require__(moduleId) {
|
|
8588
8588
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
8589
|
-
if (cachedModule !==
|
|
8589
|
+
if (cachedModule !== void 0) {
|
|
8590
8590
|
return cachedModule.exports;
|
|
8591
8591
|
}
|
|
8592
8592
|
var module = __webpack_module_cache__[moduleId] = {
|
|
@@ -8658,16 +8658,16 @@ function format2(document, range, options) {
|
|
|
8658
8658
|
indent_char: options.insertSpaces ? " " : " ",
|
|
8659
8659
|
indent_empty_lines: getFormatOption(options, "indentEmptyLines", false),
|
|
8660
8660
|
wrap_line_length: getFormatOption(options, "wrapLineLength", 120),
|
|
8661
|
-
unformatted: getTagsFormatOption(options, "unformatted",
|
|
8662
|
-
content_unformatted: getTagsFormatOption(options, "contentUnformatted",
|
|
8661
|
+
unformatted: getTagsFormatOption(options, "unformatted", void 0),
|
|
8662
|
+
content_unformatted: getTagsFormatOption(options, "contentUnformatted", void 0),
|
|
8663
8663
|
indent_inner_html: getFormatOption(options, "indentInnerHtml", false),
|
|
8664
8664
|
preserve_newlines: getFormatOption(options, "preserveNewLines", true),
|
|
8665
8665
|
max_preserve_newlines: getFormatOption(options, "maxPreserveNewLines", 32786),
|
|
8666
8666
|
indent_handlebars: getFormatOption(options, "indentHandlebars", false),
|
|
8667
8667
|
end_with_newline: includesEnd && getFormatOption(options, "endWithNewline", false),
|
|
8668
|
-
extra_liners: getTagsFormatOption(options, "extraLiners",
|
|
8668
|
+
extra_liners: getTagsFormatOption(options, "extraLiners", void 0),
|
|
8669
8669
|
wrap_attributes: getFormatOption(options, "wrapAttributes", "auto"),
|
|
8670
|
-
wrap_attributes_indent_size: getFormatOption(options, "wrapAttributesIndentSize",
|
|
8670
|
+
wrap_attributes_indent_size: getFormatOption(options, "wrapAttributesIndentSize", void 0),
|
|
8671
8671
|
eol: "\n",
|
|
8672
8672
|
indent_scripts: getFormatOption(options, "indentScripts", "normal"),
|
|
8673
8673
|
templating: getTemplatingFormatOption(options, "all"),
|
|
@@ -8787,7 +8787,7 @@ var LIB;
|
|
|
8787
8787
|
var n2 = { resolve: function() {
|
|
8788
8788
|
for (var t4, n3 = "", i = false, o = arguments.length - 1; o >= -1 && !i; o--) {
|
|
8789
8789
|
var s;
|
|
8790
|
-
o >= 0 ? s = arguments[o] : (
|
|
8790
|
+
o >= 0 ? s = arguments[o] : (void 0 === t4 && (t4 = process.cwd()), s = t4), e2(s), 0 !== s.length && (n3 = s + "/" + n3, i = 47 === s.charCodeAt(0));
|
|
8791
8791
|
}
|
|
8792
8792
|
return n3 = r2(n3, !i), i ? n3.length > 0 ? "/" + n3 : "/" : n3.length > 0 ? n3 : ".";
|
|
8793
8793
|
}, normalize: function(t4) {
|
|
@@ -8802,9 +8802,9 @@ var LIB;
|
|
|
8802
8802
|
return ".";
|
|
8803
8803
|
for (var t4, r3 = 0; r3 < arguments.length; ++r3) {
|
|
8804
8804
|
var i = arguments[r3];
|
|
8805
|
-
e2(i), i.length > 0 && (
|
|
8805
|
+
e2(i), i.length > 0 && (void 0 === t4 ? t4 = i : t4 += "/" + i);
|
|
8806
8806
|
}
|
|
8807
|
-
return
|
|
8807
|
+
return void 0 === t4 ? "." : n2.normalize(t4);
|
|
8808
8808
|
}, relative: function(t4, r3) {
|
|
8809
8809
|
if (e2(t4), e2(r3), t4 === r3)
|
|
8810
8810
|
return "";
|
|
@@ -8849,11 +8849,11 @@ var LIB;
|
|
|
8849
8849
|
o = false;
|
|
8850
8850
|
return -1 === i ? n3 ? "/" : "." : n3 && 1 === i ? "//" : t4.slice(0, i);
|
|
8851
8851
|
}, basename: function(t4, r3) {
|
|
8852
|
-
if (
|
|
8852
|
+
if (void 0 !== r3 && "string" != typeof r3)
|
|
8853
8853
|
throw new TypeError('"ext" argument must be a string');
|
|
8854
8854
|
e2(t4);
|
|
8855
8855
|
var n3, i = 0, o = -1, s = true;
|
|
8856
|
-
if (
|
|
8856
|
+
if (void 0 !== r3 && r3.length > 0 && r3.length <= t4.length) {
|
|
8857
8857
|
if (r3.length === t4.length && r3 === t4)
|
|
8858
8858
|
return "";
|
|
8859
8859
|
var h = r3.length - 1, a = -1;
|
|
@@ -8917,7 +8917,7 @@ var LIB;
|
|
|
8917
8917
|
} }, e = {};
|
|
8918
8918
|
function r(n2) {
|
|
8919
8919
|
var i = e[n2];
|
|
8920
|
-
if (
|
|
8920
|
+
if (void 0 !== i)
|
|
8921
8921
|
return i.exports;
|
|
8922
8922
|
var o = e[n2] = { exports: {} };
|
|
8923
8923
|
return t2[n2](o, o.exports, r), o.exports;
|
|
@@ -8981,7 +8981,7 @@ var LIB;
|
|
|
8981
8981
|
if (!t4)
|
|
8982
8982
|
return this;
|
|
8983
8983
|
let { scheme: e3, authority: r2, path: n2, query: i2, fragment: o2 } = t4;
|
|
8984
|
-
return
|
|
8984
|
+
return void 0 === e3 ? e3 = this.scheme : null === e3 && (e3 = h), void 0 === r2 ? r2 = this.authority : null === r2 && (r2 = h), void 0 === n2 ? n2 = this.path : null === n2 && (n2 = h), void 0 === i2 ? i2 = this.query : null === i2 && (i2 = h), void 0 === o2 ? o2 = this.fragment : null === o2 && (o2 = h), e3 === this.scheme && r2 === this.authority && n2 === this.path && i2 === this.query && o2 === this.fragment ? this : new l(e3, r2, n2, i2, o2);
|
|
8985
8985
|
}
|
|
8986
8986
|
static parse(t4, e3 = false) {
|
|
8987
8987
|
const r2 = c.exec(t4);
|
|
@@ -9017,7 +9017,7 @@ var LIB;
|
|
|
9017
9017
|
return t4;
|
|
9018
9018
|
}
|
|
9019
9019
|
}
|
|
9020
|
-
const u = t3 ? 1 :
|
|
9020
|
+
const u = t3 ? 1 : void 0;
|
|
9021
9021
|
class l extends f {
|
|
9022
9022
|
_formatted = null;
|
|
9023
9023
|
_fsPath = null;
|
|
@@ -9038,22 +9038,22 @@ var LIB;
|
|
|
9038
9038
|
for (let o2 = 0; o2 < t4.length; o2++) {
|
|
9039
9039
|
const s2 = t4.charCodeAt(o2);
|
|
9040
9040
|
if (s2 >= 97 && s2 <= 122 || s2 >= 65 && s2 <= 90 || s2 >= 48 && s2 <= 57 || 45 === s2 || 46 === s2 || 95 === s2 || 126 === s2 || e3 && 47 === s2 || r2 && 91 === s2 || r2 && 93 === s2 || r2 && 58 === s2)
|
|
9041
|
-
-1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2, o2)), i2 = -1),
|
|
9041
|
+
-1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2, o2)), i2 = -1), void 0 !== n2 && (n2 += t4.charAt(o2));
|
|
9042
9042
|
else {
|
|
9043
|
-
|
|
9043
|
+
void 0 === n2 && (n2 = t4.substr(0, o2));
|
|
9044
9044
|
const e4 = g[s2];
|
|
9045
|
-
|
|
9045
|
+
void 0 !== e4 ? (-1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2, o2)), i2 = -1), n2 += e4) : -1 === i2 && (i2 = o2);
|
|
9046
9046
|
}
|
|
9047
9047
|
}
|
|
9048
|
-
return -1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2))),
|
|
9048
|
+
return -1 !== i2 && (n2 += encodeURIComponent(t4.substring(i2))), void 0 !== n2 ? n2 : t4;
|
|
9049
9049
|
}
|
|
9050
9050
|
function p(t4) {
|
|
9051
9051
|
let e3;
|
|
9052
9052
|
for (let r2 = 0; r2 < t4.length; r2++) {
|
|
9053
9053
|
const n2 = t4.charCodeAt(r2);
|
|
9054
|
-
35 === n2 || 63 === n2 ? (
|
|
9054
|
+
35 === n2 || 63 === n2 ? (void 0 === e3 && (e3 = t4.substr(0, r2)), e3 += g[n2]) : void 0 !== e3 && (e3 += t4[r2]);
|
|
9055
9055
|
}
|
|
9056
|
-
return
|
|
9056
|
+
return void 0 !== e3 ? e3 : t4;
|
|
9057
9057
|
}
|
|
9058
9058
|
function m(e3, r2) {
|
|
9059
9059
|
let n2;
|
|
@@ -9139,7 +9139,7 @@ function validateRef(url, languageId) {
|
|
|
9139
9139
|
}
|
|
9140
9140
|
function getWorkspaceUrl(documentUri, tokenContent, documentContext, base) {
|
|
9141
9141
|
if (/^\s*javascript\:/i.test(tokenContent) || /[\n\r]/.test(tokenContent)) {
|
|
9142
|
-
return
|
|
9142
|
+
return void 0;
|
|
9143
9143
|
}
|
|
9144
9144
|
tokenContent = tokenContent.replace(/^\s*/g, "");
|
|
9145
9145
|
const match = tokenContent.match(/^(\w[\w\d+.-]*):/);
|
|
@@ -9148,7 +9148,7 @@ function getWorkspaceUrl(documentUri, tokenContent, documentContext, base) {
|
|
|
9148
9148
|
if (schema === "http" || schema === "https" || schema === "file") {
|
|
9149
9149
|
return tokenContent;
|
|
9150
9150
|
}
|
|
9151
|
-
return
|
|
9151
|
+
return void 0;
|
|
9152
9152
|
}
|
|
9153
9153
|
if (/^\#/i.test(tokenContent)) {
|
|
9154
9154
|
return documentUri + tokenContent;
|
|
@@ -9165,7 +9165,7 @@ function getWorkspaceUrl(documentUri, tokenContent, documentContext, base) {
|
|
|
9165
9165
|
function createLink(document, documentContext, attributeValue, startOffset, endOffset, base) {
|
|
9166
9166
|
const tokenContent = normalizeRef(attributeValue);
|
|
9167
9167
|
if (!validateRef(tokenContent, document.languageId)) {
|
|
9168
|
-
return
|
|
9168
|
+
return void 0;
|
|
9169
9169
|
}
|
|
9170
9170
|
if (tokenContent.length < attributeValue.length) {
|
|
9171
9171
|
startOffset++;
|
|
@@ -9173,7 +9173,7 @@ function createLink(document, documentContext, attributeValue, startOffset, endO
|
|
|
9173
9173
|
}
|
|
9174
9174
|
const workspaceUrl = getWorkspaceUrl(document.uri, tokenContent, documentContext, base);
|
|
9175
9175
|
if (!workspaceUrl) {
|
|
9176
|
-
return
|
|
9176
|
+
return void 0;
|
|
9177
9177
|
}
|
|
9178
9178
|
const target = validateAndCleanURI(workspaceUrl, document);
|
|
9179
9179
|
return {
|
|
@@ -9200,7 +9200,7 @@ function validateAndCleanURI(uriStr, document) {
|
|
|
9200
9200
|
}
|
|
9201
9201
|
return uriStr;
|
|
9202
9202
|
} catch (e) {
|
|
9203
|
-
return
|
|
9203
|
+
return void 0;
|
|
9204
9204
|
}
|
|
9205
9205
|
}
|
|
9206
9206
|
var HTMLDocumentLinks = class {
|
|
@@ -9211,10 +9211,10 @@ var HTMLDocumentLinks = class {
|
|
|
9211
9211
|
const newLinks = [];
|
|
9212
9212
|
const scanner = createScanner(document.getText(), 0);
|
|
9213
9213
|
let token = scanner.scan();
|
|
9214
|
-
let lastAttributeName =
|
|
9215
|
-
let lastTagName =
|
|
9214
|
+
let lastAttributeName = void 0;
|
|
9215
|
+
let lastTagName = void 0;
|
|
9216
9216
|
let afterBase = false;
|
|
9217
|
-
let base =
|
|
9217
|
+
let base = void 0;
|
|
9218
9218
|
const idLocations = {};
|
|
9219
9219
|
while (token !== TokenType.EOS) {
|
|
9220
9220
|
switch (token) {
|
|
@@ -9243,7 +9243,7 @@ var HTMLDocumentLinks = class {
|
|
|
9243
9243
|
}
|
|
9244
9244
|
}
|
|
9245
9245
|
afterBase = false;
|
|
9246
|
-
lastAttributeName =
|
|
9246
|
+
lastAttributeName = void 0;
|
|
9247
9247
|
} else if (lastAttributeName === "id") {
|
|
9248
9248
|
const id = normalizeRef(scanner.getTokenText());
|
|
9249
9249
|
idLocations[id] = scanner.getTokenOffset();
|
|
@@ -9257,7 +9257,7 @@ var HTMLDocumentLinks = class {
|
|
|
9257
9257
|
if (link.target && startsWith(link.target, localWithHash)) {
|
|
9258
9258
|
const target = link.target.substring(localWithHash.length);
|
|
9259
9259
|
const offset = idLocations[target];
|
|
9260
|
-
if (offset !==
|
|
9260
|
+
if (offset !== void 0) {
|
|
9261
9261
|
const pos = document.positionAt(offset);
|
|
9262
9262
|
link.target = `${localWithHash}${pos.line + 1},${pos.character + 1}`;
|
|
9263
9263
|
} else {
|
|
@@ -9312,7 +9312,7 @@ function findDocumentSymbols(document, htmlDocument) {
|
|
|
9312
9312
|
const symbols = [];
|
|
9313
9313
|
const symbols2 = findDocumentSymbols2(document, htmlDocument);
|
|
9314
9314
|
for (const symbol of symbols2) {
|
|
9315
|
-
walk(symbol,
|
|
9315
|
+
walk(symbol, void 0);
|
|
9316
9316
|
}
|
|
9317
9317
|
return symbols;
|
|
9318
9318
|
function walk(node, parent) {
|
|
@@ -9336,7 +9336,7 @@ function findDocumentSymbols2(document, htmlDocument) {
|
|
|
9336
9336
|
function provideFileSymbolsInternal(document, node, symbols) {
|
|
9337
9337
|
const name = nodeToName(node);
|
|
9338
9338
|
const range = Range.create(document.positionAt(node.start), document.positionAt(node.end));
|
|
9339
|
-
const symbol = DocumentSymbol.create(name,
|
|
9339
|
+
const symbol = DocumentSymbol.create(name, void 0, SymbolKind.Field, range, range);
|
|
9340
9340
|
symbols.push(symbol);
|
|
9341
9341
|
node.children.forEach((child) => {
|
|
9342
9342
|
symbol.children ?? (symbol.children = []);
|
|
@@ -9458,7 +9458,7 @@ var HTMLFolding = class {
|
|
|
9458
9458
|
}
|
|
9459
9459
|
return diff;
|
|
9460
9460
|
});
|
|
9461
|
-
let top =
|
|
9461
|
+
let top = void 0;
|
|
9462
9462
|
const previous = [];
|
|
9463
9463
|
const nestingLevels = [];
|
|
9464
9464
|
const nestingLevelCounts = [];
|
|
@@ -9614,8 +9614,8 @@ var HTMLSelectionRange = class {
|
|
|
9614
9614
|
}
|
|
9615
9615
|
getSelectionRange(position, document, htmlDocument) {
|
|
9616
9616
|
const applicableRanges = this.getApplicableRanges(document, position, htmlDocument);
|
|
9617
|
-
let prev =
|
|
9618
|
-
let current =
|
|
9617
|
+
let prev = void 0;
|
|
9618
|
+
let current = void 0;
|
|
9619
9619
|
for (let index = applicableRanges.length - 1; index >= 0; index--) {
|
|
9620
9620
|
const range = applicableRanges[index];
|
|
9621
9621
|
if (!prev || range[0] !== prev[0] || range[1] !== prev[1]) {
|