vscode-json-languageservice 4.2.0-next.0 → 4.2.0

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.
@@ -40,7 +40,10 @@ var __extends = (this && this.__extends) || (function () {
40
40
  'date-time': { errorMessage: localize('dateTimeFormatWarning', '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 },
41
41
  'date': { errorMessage: localize('dateFormatWarning', 'String is not a RFC3339 date.'), pattern: /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i },
42
42
  'time': { errorMessage: localize('timeFormatWarning', 'String is not a RFC3339 time.'), pattern: /^([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 },
43
- 'email': { errorMessage: localize('emailFormatWarning', 'String is not an e-mail address.'), pattern: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ }
43
+ 'email': { errorMessage: localize('emailFormatWarning', 'String is not an e-mail address.'), pattern: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}))$/ },
44
+ 'hostname': { errorMessage: localize('hostnameFormatWarning', 'String is not a hostname.'), pattern: /^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i },
45
+ 'ipv4': { errorMessage: localize('ipv4FormatWarning', 'String is not an IPv4 address.'), pattern: /^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/ },
46
+ 'ipv6': { errorMessage: localize('ipv6FormatWarning', 'String is not an IPv6 address.'), pattern: /^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i },
44
47
  };
45
48
  var ASTNodeImpl = /** @class */ (function () {
46
49
  function ASTNodeImpl(parent, offset, length) {
@@ -163,7 +166,7 @@ var __extends = (this && this.__extends) || (function () {
163
166
  }(ASTNodeImpl));
164
167
  exports.ObjectASTNodeImpl = ObjectASTNodeImpl;
165
168
  function asSchema(schema) {
166
- if (objects_1.isBoolean(schema)) {
169
+ if ((0, objects_1.isBoolean)(schema)) {
167
170
  return schema ? {} : { "not": {} };
168
171
  }
169
172
  return schema;
@@ -499,7 +502,7 @@ var __extends = (this && this.__extends) || (function () {
499
502
  var enumValueMatch = false;
500
503
  for (var _d = 0, _e = schema.enum; _d < _e.length; _d++) {
501
504
  var e = _e[_d];
502
- if (objects_1.equals(val, e)) {
505
+ if ((0, objects_1.equals)(val, e)) {
503
506
  enumValueMatch = true;
504
507
  break;
505
508
  }
@@ -514,9 +517,9 @@ var __extends = (this && this.__extends) || (function () {
514
517
  });
515
518
  }
516
519
  }
517
- if (objects_1.isDefined(schema.const)) {
520
+ if ((0, objects_1.isDefined)(schema.const)) {
518
521
  var val = getNodeValue(node);
519
- if (!objects_1.equals(val, schema.const)) {
522
+ if (!(0, objects_1.equals)(val, schema.const)) {
520
523
  validationResult.problems.push({
521
524
  location: { offset: node.offset, length: node.length },
522
525
  code: jsonLanguageTypes_1.ErrorCode.EnumValueMismatch,
@@ -549,7 +552,7 @@ var __extends = (this && this.__extends) || (function () {
549
552
  };
550
553
  }
551
554
  ;
552
- if (objects_1.isNumber(schema.multipleOf)) {
555
+ if ((0, objects_1.isNumber)(schema.multipleOf)) {
553
556
  var remainder = -1;
554
557
  if (Number.isInteger(schema.multipleOf)) {
555
558
  remainder = val % schema.multipleOf;
@@ -576,43 +579,43 @@ var __extends = (this && this.__extends) || (function () {
576
579
  }
577
580
  }
578
581
  function getExclusiveLimit(limit, exclusive) {
579
- if (objects_1.isNumber(exclusive)) {
582
+ if ((0, objects_1.isNumber)(exclusive)) {
580
583
  return exclusive;
581
584
  }
582
- if (objects_1.isBoolean(exclusive) && exclusive) {
585
+ if ((0, objects_1.isBoolean)(exclusive) && exclusive) {
583
586
  return limit;
584
587
  }
585
588
  return undefined;
586
589
  }
587
590
  function getLimit(limit, exclusive) {
588
- if (!objects_1.isBoolean(exclusive) || !exclusive) {
591
+ if (!(0, objects_1.isBoolean)(exclusive) || !exclusive) {
589
592
  return limit;
590
593
  }
591
594
  return undefined;
592
595
  }
593
596
  var exclusiveMinimum = getExclusiveLimit(schema.minimum, schema.exclusiveMinimum);
594
- if (objects_1.isNumber(exclusiveMinimum) && val <= exclusiveMinimum) {
597
+ if ((0, objects_1.isNumber)(exclusiveMinimum) && val <= exclusiveMinimum) {
595
598
  validationResult.problems.push({
596
599
  location: { offset: node.offset, length: node.length },
597
600
  message: localize('exclusiveMinimumWarning', 'Value is below the exclusive minimum of {0}.', exclusiveMinimum)
598
601
  });
599
602
  }
600
603
  var exclusiveMaximum = getExclusiveLimit(schema.maximum, schema.exclusiveMaximum);
601
- if (objects_1.isNumber(exclusiveMaximum) && val >= exclusiveMaximum) {
604
+ if ((0, objects_1.isNumber)(exclusiveMaximum) && val >= exclusiveMaximum) {
602
605
  validationResult.problems.push({
603
606
  location: { offset: node.offset, length: node.length },
604
607
  message: localize('exclusiveMaximumWarning', 'Value is above the exclusive maximum of {0}.', exclusiveMaximum)
605
608
  });
606
609
  }
607
610
  var minimum = getLimit(schema.minimum, schema.exclusiveMinimum);
608
- if (objects_1.isNumber(minimum) && val < minimum) {
611
+ if ((0, objects_1.isNumber)(minimum) && val < minimum) {
609
612
  validationResult.problems.push({
610
613
  location: { offset: node.offset, length: node.length },
611
614
  message: localize('minimumWarning', 'Value is below the minimum of {0}.', minimum)
612
615
  });
613
616
  }
614
617
  var maximum = getLimit(schema.maximum, schema.exclusiveMaximum);
615
- if (objects_1.isNumber(maximum) && val > maximum) {
618
+ if ((0, objects_1.isNumber)(maximum) && val > maximum) {
616
619
  validationResult.problems.push({
617
620
  location: { offset: node.offset, length: node.length },
618
621
  message: localize('maximumWarning', 'Value is above the maximum of {0}.', maximum)
@@ -620,20 +623,20 @@ var __extends = (this && this.__extends) || (function () {
620
623
  }
621
624
  }
622
625
  function _validateStringNode(node, schema, validationResult, matchingSchemas) {
623
- if (objects_1.isNumber(schema.minLength) && node.value.length < schema.minLength) {
626
+ if ((0, objects_1.isNumber)(schema.minLength) && node.value.length < schema.minLength) {
624
627
  validationResult.problems.push({
625
628
  location: { offset: node.offset, length: node.length },
626
629
  message: localize('minLengthWarning', 'String is shorter than the minimum length of {0}.', schema.minLength)
627
630
  });
628
631
  }
629
- if (objects_1.isNumber(schema.maxLength) && node.value.length > schema.maxLength) {
632
+ if ((0, objects_1.isNumber)(schema.maxLength) && node.value.length > schema.maxLength) {
630
633
  validationResult.problems.push({
631
634
  location: { offset: node.offset, length: node.length },
632
635
  message: localize('maxLengthWarning', 'String is longer than the maximum length of {0}.', schema.maxLength)
633
636
  });
634
637
  }
635
- if (objects_1.isString(schema.pattern)) {
636
- var regex = strings_1.extendedRegExp(schema.pattern);
638
+ if ((0, objects_1.isString)(schema.pattern)) {
639
+ var regex = (0, strings_1.extendedRegExp)(schema.pattern);
637
640
  if (!(regex === null || regex === void 0 ? void 0 : regex.test(node.value))) {
638
641
  validationResult.problems.push({
639
642
  location: { offset: node.offset, length: node.length },
@@ -672,6 +675,9 @@ var __extends = (this && this.__extends) || (function () {
672
675
  case 'date':
673
676
  case 'time':
674
677
  case 'email':
678
+ case 'hostname':
679
+ case 'ipv4':
680
+ case 'ipv6':
675
681
  var format = formats[schema.format];
676
682
  if (!node.value || !format.pattern.exec(node.value)) {
677
683
  validationResult.problems.push({
@@ -740,13 +746,13 @@ var __extends = (this && this.__extends) || (function () {
740
746
  });
741
747
  }
742
748
  }
743
- if (objects_1.isNumber(schema.minItems) && node.items.length < schema.minItems) {
749
+ if ((0, objects_1.isNumber)(schema.minItems) && node.items.length < schema.minItems) {
744
750
  validationResult.problems.push({
745
751
  location: { offset: node.offset, length: node.length },
746
752
  message: localize('minItemsWarning', 'Array has too few items. Expected {0} or more.', schema.minItems)
747
753
  });
748
754
  }
749
- if (objects_1.isNumber(schema.maxItems) && node.items.length > schema.maxItems) {
755
+ if ((0, objects_1.isNumber)(schema.maxItems) && node.items.length > schema.maxItems) {
750
756
  validationResult.problems.push({
751
757
  location: { offset: node.offset, length: node.length },
752
758
  message: localize('maxItemsWarning', 'Array has too many items. Expected {0} or fewer.', schema.maxItems)
@@ -801,7 +807,7 @@ var __extends = (this && this.__extends) || (function () {
801
807
  var propertySchema = schema.properties[propertyName];
802
808
  var child = seenKeys[propertyName];
803
809
  if (child) {
804
- if (objects_1.isBoolean(propertySchema)) {
810
+ if ((0, objects_1.isBoolean)(propertySchema)) {
805
811
  if (!propertySchema) {
806
812
  var propertyNode = child.parent;
807
813
  validationResult.problems.push({
@@ -825,7 +831,7 @@ var __extends = (this && this.__extends) || (function () {
825
831
  if (schema.patternProperties) {
826
832
  for (var _f = 0, _g = Object.keys(schema.patternProperties); _f < _g.length; _f++) {
827
833
  var propertyPattern = _g[_f];
828
- var regex = strings_1.extendedRegExp(propertyPattern);
834
+ var regex = (0, strings_1.extendedRegExp)(propertyPattern);
829
835
  for (var _h = 0, _j = unprocessedProperties.slice(0); _h < _j.length; _h++) {
830
836
  var propertyName = _j[_h];
831
837
  if (regex === null || regex === void 0 ? void 0 : regex.test(propertyName)) {
@@ -833,7 +839,7 @@ var __extends = (this && this.__extends) || (function () {
833
839
  var child = seenKeys[propertyName];
834
840
  if (child) {
835
841
  var propertySchema = schema.patternProperties[propertyPattern];
836
- if (objects_1.isBoolean(propertySchema)) {
842
+ if ((0, objects_1.isBoolean)(propertySchema)) {
837
843
  if (!propertySchema) {
838
844
  var propertyNode = child.parent;
839
845
  validationResult.problems.push({
@@ -882,7 +888,7 @@ var __extends = (this && this.__extends) || (function () {
882
888
  }
883
889
  }
884
890
  }
885
- if (objects_1.isNumber(schema.maxProperties)) {
891
+ if ((0, objects_1.isNumber)(schema.maxProperties)) {
886
892
  if (node.properties.length > schema.maxProperties) {
887
893
  validationResult.problems.push({
888
894
  location: { offset: node.offset, length: node.length },
@@ -890,7 +896,7 @@ var __extends = (this && this.__extends) || (function () {
890
896
  });
891
897
  }
892
898
  }
893
- if (objects_1.isNumber(schema.minProperties)) {
899
+ if ((0, objects_1.isNumber)(schema.minProperties)) {
894
900
  if (node.properties.length < schema.minProperties) {
895
901
  validationResult.problems.push({
896
902
  location: { offset: node.offset, length: node.length },
@@ -1186,7 +1192,7 @@ var __extends = (this && this.__extends) || (function () {
1186
1192
  var tokenValue = scanner.getTokenValue();
1187
1193
  try {
1188
1194
  var numberValue = JSON.parse(tokenValue);
1189
- if (!objects_1.isNumber(numberValue)) {
1195
+ if (!(0, objects_1.isNumber)(numberValue)) {
1190
1196
  return _error(localize('InvalidNumberFormat', 'Invalid number format.'), jsonLanguageTypes_1.ErrorCode.Undefined, node);
1191
1197
  }
1192
1198
  node.value = numberValue;
@@ -534,7 +534,7 @@
534
534
  propertyObject['description'] = description;
535
535
  }
536
536
  else {
537
- console.log(property + ": localize('schema.json." + property + "', \"\")");
537
+ console.log("".concat(property, ": localize('schema.json.").concat(property, "', \"\")"));
538
538
  }
539
539
  }
540
540
  }
@@ -230,7 +230,7 @@
230
230
  if (propertySchema.suggestSortText !== undefined) {
231
231
  proposal.sortText = propertySchema.suggestSortText;
232
232
  }
233
- if (proposal.insertText && strings_1.endsWith(proposal.insertText, "$1" + separatorAfter)) {
233
+ if (proposal.insertText && (0, strings_1.endsWith)(proposal.insertText, "$1".concat(separatorAfter))) {
234
234
  proposal.command = {
235
235
  title: 'Suggest',
236
236
  command: 'editor.action.triggerSuggest'
@@ -255,7 +255,7 @@
255
255
  if (schemaPropertyNames_1.suggestSortText !== undefined) {
256
256
  proposal.sortText = schemaPropertyNames_1.suggestSortText;
257
257
  }
258
- if (proposal.insertText && strings_1.endsWith(proposal.insertText, "$1" + separatorAfter)) {
258
+ if (proposal.insertText && (0, strings_1.endsWith)(proposal.insertText, "$1".concat(separatorAfter))) {
259
259
  proposal.command = {
260
260
  title: 'Suggest',
261
261
  command: 'editor.action.triggerSuggest'
@@ -451,7 +451,7 @@
451
451
  if (s.schema.patternProperties && !propertyMatched) {
452
452
  for (var _a = 0, _b = Object.keys(s.schema.patternProperties); _a < _b.length; _a++) {
453
453
  var pattern = _b[_a];
454
- var regex = strings_1.extendedRegExp(pattern);
454
+ var regex = (0, strings_1.extendedRegExp)(pattern);
455
455
  if (regex === null || regex === void 0 ? void 0 : regex.test(parentKey)) {
456
456
  propertyMatched = true;
457
457
  var propertySchema = s.schema.patternProperties[pattern];
@@ -527,7 +527,7 @@
527
527
  var _this = this;
528
528
  if (arrayDepth === void 0) { arrayDepth = 0; }
529
529
  var hasProposals = false;
530
- if (objects_1.isDefined(schema.default)) {
530
+ if ((0, objects_1.isDefined)(schema.default)) {
531
531
  var type = schema.type;
532
532
  var value = schema.default;
533
533
  for (var i = arrayDepth; i > 0; i--) {
@@ -567,7 +567,7 @@
567
567
  var label = s.label;
568
568
  var insertText;
569
569
  var filterText;
570
- if (objects_1.isDefined(value)) {
570
+ if ((0, objects_1.isDefined)(value)) {
571
571
  var type_1 = schema.type;
572
572
  for (var i = arrayDepth; i > 0; i--) {
573
573
  value = [value];
@@ -608,7 +608,7 @@
608
608
  }
609
609
  };
610
610
  JSONCompletion.prototype.addEnumValueCompletions = function (schema, separatorAfter, collector) {
611
- if (objects_1.isDefined(schema.const)) {
611
+ if ((0, objects_1.isDefined)(schema.const)) {
612
612
  collector.add({
613
613
  kind: this.getSuggestionKind(schema.type),
614
614
  label: this.getLabelForValue(schema.const),
@@ -638,7 +638,7 @@
638
638
  }
639
639
  };
640
640
  JSONCompletion.prototype.collectTypes = function (schema, types) {
641
- if (Array.isArray(schema.enum) || objects_1.isDefined(schema.const)) {
641
+ if (Array.isArray(schema.enum) || (0, objects_1.isDefined)(schema.const)) {
642
642
  return;
643
643
  }
644
644
  var type = schema.type;
@@ -735,7 +735,7 @@
735
735
  }
736
736
  return JSON.stringify(value);
737
737
  };
738
- return json_1.stringifyObject(value, '', replacer) + separatorAfter;
738
+ return (0, json_1.stringifyObject)(value, '', replacer) + separatorAfter;
739
739
  };
740
740
  JSONCompletion.prototype.getInsertTextForGuessedValue = function (value, separatorAfter) {
741
741
  switch (typeof value) {
@@ -804,7 +804,7 @@
804
804
  if (Array.isArray(propertySchema.defaultSnippets)) {
805
805
  if (propertySchema.defaultSnippets.length === 1) {
806
806
  var body = propertySchema.defaultSnippets[0].body;
807
- if (objects_1.isDefined(body)) {
807
+ if ((0, objects_1.isDefined)(body)) {
808
808
  value = this.getInsertTextForSnippetValue(body, '');
809
809
  }
810
810
  }
@@ -816,7 +816,7 @@
816
816
  }
817
817
  nValueProposals += propertySchema.enum.length;
818
818
  }
819
- if (objects_1.isDefined(propertySchema.default)) {
819
+ if ((0, objects_1.isDefined)(propertySchema.default)) {
820
820
  if (!value) {
821
821
  value = this.getInsertTextForGuessedValue(propertySchema.default, '');
822
822
  }
@@ -928,14 +928,14 @@
928
928
  return undefined;
929
929
  };
930
930
  JSONCompletion.prototype.doesSupportMarkdown = function () {
931
- if (!objects_1.isDefined(this.supportsMarkdown)) {
931
+ if (!(0, objects_1.isDefined)(this.supportsMarkdown)) {
932
932
  var completion = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion;
933
933
  this.supportsMarkdown = completion && completion.completionItem && Array.isArray(completion.completionItem.documentationFormat) && completion.completionItem.documentationFormat.indexOf(jsonLanguageTypes_1.MarkupKind.Markdown) !== -1;
934
934
  }
935
935
  return this.supportsMarkdown;
936
936
  };
937
937
  JSONCompletion.prototype.doesSupportsCommitCharacters = function () {
938
- if (!objects_1.isDefined(this.supportsCommitCharacters)) {
938
+ if (!(0, objects_1.isDefined)(this.supportsCommitCharacters)) {
939
939
  var completion = this.clientCapabilities.textDocument && this.clientCapabilities.textDocument.completion;
940
940
  this.supportsCommitCharacters = completion && completion.completionItem && !!completion.completionItem.commitCharactersSupport;
941
941
  }
@@ -214,7 +214,7 @@
214
214
  if (name && name.trim()) {
215
215
  return name;
216
216
  }
217
- return "\"" + name + "\"";
217
+ return "\"".concat(name, "\"");
218
218
  };
219
219
  JSONDocumentSymbols.prototype.getDetail = function (node) {
220
220
  if (!node) {
@@ -245,7 +245,7 @@
245
245
  if (!s.inverted && s.schema && (s.schema.format === 'color' || s.schema.format === 'color-hex') && s.node && s.node.type === 'string') {
246
246
  var nodeId = String(s.node.offset);
247
247
  if (!visitedNode[nodeId]) {
248
- var color = colors_1.colorFromHex(Parser.getNodeValue(s.node));
248
+ var color = (0, colors_1.colorFromHex)(Parser.getNodeValue(s.node));
249
249
  if (color) {
250
250
  var range = getRange(document, s.node);
251
251
  result.push({ color: color, range: range });
@@ -274,10 +274,10 @@
274
274
  }
275
275
  var label;
276
276
  if (color.alpha === 1) {
277
- label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256);
277
+ label = "#".concat(toTwoDigitHex(red256)).concat(toTwoDigitHex(green256)).concat(toTwoDigitHex(blue256));
278
278
  }
279
279
  else {
280
- label = "#" + toTwoDigitHex(red256) + toTwoDigitHex(green256) + toTwoDigitHex(blue256) + toTwoDigitHex(Math.round(color.alpha * 255));
280
+ label = "#".concat(toTwoDigitHex(red256)).concat(toTwoDigitHex(green256)).concat(toTwoDigitHex(blue256)).concat(toTwoDigitHex(Math.round(color.alpha * 255)));
281
281
  }
282
282
  result.push({ label: label, textEdit: jsonLanguageTypes_1.TextEdit.replace(range, JSON.stringify(label)) });
283
283
  return result;
@@ -21,7 +21,7 @@
21
21
  var nestingLevels = [];
22
22
  var stack = [];
23
23
  var prevStart = -1;
24
- var scanner = jsonc_parser_1.createScanner(document.getText(), false);
24
+ var scanner = (0, jsonc_parser_1.createScanner)(document.getText(), false);
25
25
  var token = scanner.scan();
26
26
  function addRange(range) {
27
27
  ranges.push(range);
@@ -98,7 +98,7 @@
98
98
  if (result.length > 0) {
99
99
  result += "\n\n";
100
100
  }
101
- result += "`" + toMarkdownCodeBlock(enumValue_1) + "`: " + markdownEnumValueDescription_1;
101
+ result += "`".concat(toMarkdownCodeBlock(enumValue_1), "`: ").concat(markdownEnumValueDescription_1);
102
102
  }
103
103
  return createHover([result]);
104
104
  }
@@ -25,7 +25,7 @@
25
25
  if (targetNode) {
26
26
  var targetPos = document.positionAt(targetNode.offset);
27
27
  links.push({
28
- target: document.uri + "#" + (targetPos.line + 1) + "," + (targetPos.character + 1),
28
+ target: "".concat(document.uri, "#").concat(targetPos.line + 1, ",").concat(targetPos.character + 1),
29
29
  range: createRange(document, node.valueNode)
30
30
  });
31
31
  }