@mojir/lits 2.1.18 → 2.1.19

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.
@@ -14825,7 +14825,7 @@ var AutoCompleter = /** @class */ (function () {
14825
14825
  if (!autoCompleteTokenTypes.includes(tokenType)) {
14826
14826
  return;
14827
14827
  }
14828
- this.searchPrefix = tokenValue.toLowerCase();
14828
+ this.searchPrefix = tokenValue;
14829
14829
  this.generateSuggestions(params);
14830
14830
  }
14831
14831
  AutoCompleter.prototype.getNextSuggestion = function () {
@@ -14875,25 +14875,25 @@ var AutoCompleter = /** @class */ (function () {
14875
14875
  var _a, _b, _c, _d;
14876
14876
  var suggestions = new Set();
14877
14877
  litsCommands.forEach(function (name) {
14878
- if (name.toLowerCase().startsWith(_this.searchPrefix)) {
14878
+ if (name.startsWith(_this.searchPrefix)) {
14879
14879
  suggestions.add(name);
14880
14880
  }
14881
14881
  });
14882
14882
  Object.keys((_a = params.globalContext) !== null && _a !== void 0 ? _a : {})
14883
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14883
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14884
14884
  .forEach(function (name) { return suggestions.add(name); });
14885
14885
  (_b = params.contexts) === null || _b === void 0 ? void 0 : _b.forEach(function (context) {
14886
14886
  Object.keys(context)
14887
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14887
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14888
14888
  .forEach(function (name) { return suggestions.add(name); });
14889
14889
  });
14890
14890
  Object.keys((_c = params.jsFunctions) !== null && _c !== void 0 ? _c : {})
14891
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14891
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14892
14892
  .forEach(function (name) { return suggestions.add(name); });
14893
14893
  Object.keys((_d = params.values) !== null && _d !== void 0 ? _d : {})
14894
- .filter(function (name) { return name.toLowerCase().startsWith(_this.searchPrefix); })
14894
+ .filter(function (name) { return name.startsWith(_this.searchPrefix); })
14895
14895
  .forEach(function (name) { return suggestions.add(name); });
14896
- this.suggestions = __spreadArray([], __read(suggestions), false).sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); });
14896
+ this.suggestions = __spreadArray([], __read(suggestions), false).sort(function (a, b) { return a.localeCompare(b); });
14897
14897
  };
14898
14898
  return AutoCompleter;
14899
14899
  }());