@angular/language-server 22.2.3 → 22.2.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.
Files changed (2) hide show
  1. package/index.js +65 -318
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -5355,20 +5355,20 @@ var require_main2 = __commonJS({
5355
5355
  WorkspaceFolder4.is = is;
5356
5356
  })(WorkspaceFolder3 || (exports3.WorkspaceFolder = WorkspaceFolder3 = {}));
5357
5357
  exports3.EOL = ["\n", "\r\n", "\r"];
5358
- var TextDocument5;
5359
- (function(TextDocument6) {
5358
+ var TextDocument4;
5359
+ (function(TextDocument5) {
5360
5360
  function create(uri, languageId, version, content) {
5361
- return new FullTextDocument5(uri, languageId, version, content);
5361
+ return new FullTextDocument4(uri, languageId, version, content);
5362
5362
  }
5363
- TextDocument6.create = create;
5363
+ TextDocument5.create = create;
5364
5364
  function is(value) {
5365
5365
  var candidate = value;
5366
5366
  return Is3.defined(candidate) && Is3.string(candidate.uri) && (Is3.undefined(candidate.languageId) || Is3.string(candidate.languageId)) && Is3.uinteger(candidate.lineCount) && Is3.func(candidate.getText) && Is3.func(candidate.positionAt) && Is3.func(candidate.offsetAt) ? true : false;
5367
5367
  }
5368
- TextDocument6.is = is;
5368
+ TextDocument5.is = is;
5369
5369
  function applyEdits(document, edits) {
5370
5370
  var text = document.getText();
5371
- var sortedEdits = mergeSort3(edits, function(a3, b2) {
5371
+ var sortedEdits = mergeSort2(edits, function(a3, b2) {
5372
5372
  var diff = a3.range.start.line - b2.range.start.line;
5373
5373
  if (diff === 0) {
5374
5374
  return a3.range.start.character - b2.range.start.character;
@@ -5389,16 +5389,16 @@ var require_main2 = __commonJS({
5389
5389
  }
5390
5390
  return text;
5391
5391
  }
5392
- TextDocument6.applyEdits = applyEdits;
5393
- function mergeSort3(data, compare) {
5392
+ TextDocument5.applyEdits = applyEdits;
5393
+ function mergeSort2(data, compare) {
5394
5394
  if (data.length <= 1) {
5395
5395
  return data;
5396
5396
  }
5397
5397
  var p2 = data.length / 2 | 0;
5398
5398
  var left = data.slice(0, p2);
5399
5399
  var right = data.slice(p2);
5400
- mergeSort3(left, compare);
5401
- mergeSort3(right, compare);
5400
+ mergeSort2(left, compare);
5401
+ mergeSort2(right, compare);
5402
5402
  var leftIdx = 0;
5403
5403
  var rightIdx = 0;
5404
5404
  var i2 = 0;
@@ -5418,39 +5418,39 @@ var require_main2 = __commonJS({
5418
5418
  }
5419
5419
  return data;
5420
5420
  }
5421
- })(TextDocument5 || (exports3.TextDocument = TextDocument5 = {}));
5422
- var FullTextDocument5 = (
5421
+ })(TextDocument4 || (exports3.TextDocument = TextDocument4 = {}));
5422
+ var FullTextDocument4 = (
5423
5423
  /** @class */
5424
5424
  function() {
5425
- function FullTextDocument6(uri, languageId, version, content) {
5425
+ function FullTextDocument5(uri, languageId, version, content) {
5426
5426
  this._uri = uri;
5427
5427
  this._languageId = languageId;
5428
5428
  this._version = version;
5429
5429
  this._content = content;
5430
5430
  this._lineOffsets = void 0;
5431
5431
  }
5432
- Object.defineProperty(FullTextDocument6.prototype, "uri", {
5432
+ Object.defineProperty(FullTextDocument5.prototype, "uri", {
5433
5433
  get: function() {
5434
5434
  return this._uri;
5435
5435
  },
5436
5436
  enumerable: false,
5437
5437
  configurable: true
5438
5438
  });
5439
- Object.defineProperty(FullTextDocument6.prototype, "languageId", {
5439
+ Object.defineProperty(FullTextDocument5.prototype, "languageId", {
5440
5440
  get: function() {
5441
5441
  return this._languageId;
5442
5442
  },
5443
5443
  enumerable: false,
5444
5444
  configurable: true
5445
5445
  });
5446
- Object.defineProperty(FullTextDocument6.prototype, "version", {
5446
+ Object.defineProperty(FullTextDocument5.prototype, "version", {
5447
5447
  get: function() {
5448
5448
  return this._version;
5449
5449
  },
5450
5450
  enumerable: false,
5451
5451
  configurable: true
5452
5452
  });
5453
- FullTextDocument6.prototype.getText = function(range) {
5453
+ FullTextDocument5.prototype.getText = function(range) {
5454
5454
  if (range) {
5455
5455
  var start = this.offsetAt(range.start);
5456
5456
  var end = this.offsetAt(range.end);
@@ -5458,12 +5458,12 @@ var require_main2 = __commonJS({
5458
5458
  }
5459
5459
  return this._content;
5460
5460
  };
5461
- FullTextDocument6.prototype.update = function(event, version) {
5461
+ FullTextDocument5.prototype.update = function(event, version) {
5462
5462
  this._content = event.text;
5463
5463
  this._version = version;
5464
5464
  this._lineOffsets = void 0;
5465
5465
  };
5466
- FullTextDocument6.prototype.getLineOffsets = function() {
5466
+ FullTextDocument5.prototype.getLineOffsets = function() {
5467
5467
  if (this._lineOffsets === void 0) {
5468
5468
  var lineOffsets = [];
5469
5469
  var text = this._content;
@@ -5486,7 +5486,7 @@ var require_main2 = __commonJS({
5486
5486
  }
5487
5487
  return this._lineOffsets;
5488
5488
  };
5489
- FullTextDocument6.prototype.positionAt = function(offset) {
5489
+ FullTextDocument5.prototype.positionAt = function(offset) {
5490
5490
  offset = Math.max(Math.min(offset, this._content.length), 0);
5491
5491
  var lineOffsets = this.getLineOffsets();
5492
5492
  var low = 0, high = lineOffsets.length;
@@ -5504,7 +5504,7 @@ var require_main2 = __commonJS({
5504
5504
  var line = low - 1;
5505
5505
  return Position3.create(line, offset - lineOffsets[line]);
5506
5506
  };
5507
- FullTextDocument6.prototype.offsetAt = function(position) {
5507
+ FullTextDocument5.prototype.offsetAt = function(position) {
5508
5508
  var lineOffsets = this.getLineOffsets();
5509
5509
  if (position.line >= lineOffsets.length) {
5510
5510
  return this._content.length;
@@ -5515,14 +5515,14 @@ var require_main2 = __commonJS({
5515
5515
  var nextLineOffset = position.line + 1 < lineOffsets.length ? lineOffsets[position.line + 1] : this._content.length;
5516
5516
  return Math.max(Math.min(lineOffset + position.character, nextLineOffset), lineOffset);
5517
5517
  };
5518
- Object.defineProperty(FullTextDocument6.prototype, "lineCount", {
5518
+ Object.defineProperty(FullTextDocument5.prototype, "lineCount", {
5519
5519
  get: function() {
5520
5520
  return this.getLineOffsets().length;
5521
5521
  },
5522
5522
  enumerable: false,
5523
5523
  configurable: true
5524
5524
  });
5525
- return FullTextDocument6;
5525
+ return FullTextDocument5;
5526
5526
  }()
5527
5527
  );
5528
5528
  var Is3;
@@ -14317,19 +14317,19 @@ var init_main = __esm({
14317
14317
  }
14318
14318
  WorkspaceFolder3.is = is;
14319
14319
  })(WorkspaceFolder || (WorkspaceFolder = {}));
14320
- (function(TextDocument5) {
14320
+ (function(TextDocument4) {
14321
14321
  function create(uri, languageId, version, content) {
14322
14322
  return new FullTextDocument(uri, languageId, version, content);
14323
14323
  }
14324
- TextDocument5.create = create;
14324
+ TextDocument4.create = create;
14325
14325
  function is(value) {
14326
14326
  let candidate = value;
14327
14327
  return Is.defined(candidate) && Is.string(candidate.uri) && (Is.undefined(candidate.languageId) || Is.string(candidate.languageId)) && Is.uinteger(candidate.lineCount) && Is.func(candidate.getText) && Is.func(candidate.positionAt) && Is.func(candidate.offsetAt) ? true : false;
14328
14328
  }
14329
- TextDocument5.is = is;
14329
+ TextDocument4.is = is;
14330
14330
  function applyEdits(document, edits) {
14331
14331
  let text = document.getText();
14332
- let sortedEdits = mergeSort3(edits, (a3, b2) => {
14332
+ let sortedEdits = mergeSort2(edits, (a3, b2) => {
14333
14333
  let diff = a3.range.start.line - b2.range.start.line;
14334
14334
  if (diff === 0) {
14335
14335
  return a3.range.start.character - b2.range.start.character;
@@ -14350,16 +14350,16 @@ var init_main = __esm({
14350
14350
  }
14351
14351
  return text;
14352
14352
  }
14353
- TextDocument5.applyEdits = applyEdits;
14354
- function mergeSort3(data, compare) {
14353
+ TextDocument4.applyEdits = applyEdits;
14354
+ function mergeSort2(data, compare) {
14355
14355
  if (data.length <= 1) {
14356
14356
  return data;
14357
14357
  }
14358
14358
  const p2 = data.length / 2 | 0;
14359
14359
  const left = data.slice(0, p2);
14360
14360
  const right = data.slice(p2);
14361
- mergeSort3(left, compare);
14362
- mergeSort3(right, compare);
14361
+ mergeSort2(left, compare);
14362
+ mergeSort2(right, compare);
14363
14363
  let leftIdx = 0;
14364
14364
  let rightIdx = 0;
14365
14365
  let i2 = 0;
@@ -14516,7 +14516,11 @@ var init_main = __esm({
14516
14516
  }
14517
14517
  });
14518
14518
 
14519
- // node_modules/.aspect_rules_js/vscode-languageserver-textdocument@1.0.15/node_modules/vscode-languageserver-textdocument/lib/esm/main.js
14519
+ // node_modules/.aspect_rules_js/vscode-languageserver-textdocument@1.0.14/node_modules/vscode-languageserver-textdocument/lib/esm/main.js
14520
+ var main_exports = {};
14521
+ __export(main_exports, {
14522
+ TextDocument: () => TextDocument2
14523
+ });
14520
14524
  function mergeSort(data, compare) {
14521
14525
  if (data.length <= 1) {
14522
14526
  return data;
@@ -14578,7 +14582,7 @@ function getWellformedEdit(textEdit) {
14578
14582
  }
14579
14583
  var FullTextDocument2, TextDocument2;
14580
14584
  var init_main2 = __esm({
14581
- "node_modules/.aspect_rules_js/vscode-languageserver-textdocument@1.0.15/node_modules/vscode-languageserver-textdocument/lib/esm/main.js"() {
14585
+ "node_modules/.aspect_rules_js/vscode-languageserver-textdocument@1.0.14/node_modules/vscode-languageserver-textdocument/lib/esm/main.js"() {
14582
14586
  "use strict";
14583
14587
  FullTextDocument2 = class _FullTextDocument {
14584
14588
  constructor(uri, languageId, version, content) {
@@ -14724,11 +14728,11 @@ var init_main2 = __esm({
14724
14728
  return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range === void 0 && candidate.rangeLength === void 0;
14725
14729
  }
14726
14730
  };
14727
- (function(TextDocument5) {
14731
+ (function(TextDocument4) {
14728
14732
  function create(uri, languageId, version, content) {
14729
14733
  return new FullTextDocument2(uri, languageId, version, content);
14730
14734
  }
14731
- TextDocument5.create = create;
14735
+ TextDocument4.create = create;
14732
14736
  function update(document, changes, version) {
14733
14737
  if (document instanceof FullTextDocument2) {
14734
14738
  document.update(changes, version);
@@ -14737,7 +14741,7 @@ var init_main2 = __esm({
14737
14741
  throw new Error("TextDocument.update: document must be created by TextDocument.create");
14738
14742
  }
14739
14743
  }
14740
- TextDocument5.update = update;
14744
+ TextDocument4.update = update;
14741
14745
  function applyEdits(document, edits) {
14742
14746
  const text = document.getText();
14743
14747
  const sortedEdits = mergeSort(edits.map(getWellformedEdit), (a3, b2) => {
@@ -14764,7 +14768,7 @@ var init_main2 = __esm({
14764
14768
  spans.push(text.substr(lastModifiedOffset));
14765
14769
  return spans.join("");
14766
14770
  }
14767
- TextDocument5.applyEdits = applyEdits;
14771
+ TextDocument4.applyEdits = applyEdits;
14768
14772
  })(TextDocument2 || (TextDocument2 = {}));
14769
14773
  }
14770
14774
  });
@@ -70799,263 +70803,6 @@ var init_cssLanguageService = __esm({
70799
70803
  }
70800
70804
  });
70801
70805
 
70802
- // node_modules/.aspect_rules_js/vscode-languageserver-textdocument@1.0.14/node_modules/vscode-languageserver-textdocument/lib/esm/main.js
70803
- var main_exports = {};
70804
- __export(main_exports, {
70805
- TextDocument: () => TextDocument3
70806
- });
70807
- function mergeSort2(data, compare) {
70808
- if (data.length <= 1) {
70809
- return data;
70810
- }
70811
- const p2 = data.length / 2 | 0;
70812
- const left = data.slice(0, p2);
70813
- const right = data.slice(p2);
70814
- mergeSort2(left, compare);
70815
- mergeSort2(right, compare);
70816
- let leftIdx = 0;
70817
- let rightIdx = 0;
70818
- let i2 = 0;
70819
- while (leftIdx < left.length && rightIdx < right.length) {
70820
- const ret = compare(left[leftIdx], right[rightIdx]);
70821
- if (ret <= 0) {
70822
- data[i2++] = left[leftIdx++];
70823
- } else {
70824
- data[i2++] = right[rightIdx++];
70825
- }
70826
- }
70827
- while (leftIdx < left.length) {
70828
- data[i2++] = left[leftIdx++];
70829
- }
70830
- while (rightIdx < right.length) {
70831
- data[i2++] = right[rightIdx++];
70832
- }
70833
- return data;
70834
- }
70835
- function computeLineOffsets2(text, isAtLineStart, textOffset = 0) {
70836
- const result = isAtLineStart ? [textOffset] : [];
70837
- for (let i2 = 0; i2 < text.length; i2++) {
70838
- const ch = text.charCodeAt(i2);
70839
- if (isEOL3(ch)) {
70840
- if (ch === 13 && i2 + 1 < text.length && text.charCodeAt(i2 + 1) === 10) {
70841
- i2++;
70842
- }
70843
- result.push(textOffset + i2 + 1);
70844
- }
70845
- }
70846
- return result;
70847
- }
70848
- function isEOL3(char) {
70849
- return char === 13 || char === 10;
70850
- }
70851
- function getWellformedRange2(range) {
70852
- const start = range.start;
70853
- const end = range.end;
70854
- if (start.line > end.line || start.line === end.line && start.character > end.character) {
70855
- return { start: end, end: start };
70856
- }
70857
- return range;
70858
- }
70859
- function getWellformedEdit2(textEdit) {
70860
- const range = getWellformedRange2(textEdit.range);
70861
- if (range !== textEdit.range) {
70862
- return { newText: textEdit.newText, range };
70863
- }
70864
- return textEdit;
70865
- }
70866
- var FullTextDocument3, TextDocument3;
70867
- var init_main3 = __esm({
70868
- "node_modules/.aspect_rules_js/vscode-languageserver-textdocument@1.0.14/node_modules/vscode-languageserver-textdocument/lib/esm/main.js"() {
70869
- "use strict";
70870
- FullTextDocument3 = class _FullTextDocument {
70871
- constructor(uri, languageId, version, content) {
70872
- this._uri = uri;
70873
- this._languageId = languageId;
70874
- this._version = version;
70875
- this._content = content;
70876
- this._lineOffsets = void 0;
70877
- }
70878
- get uri() {
70879
- return this._uri;
70880
- }
70881
- get languageId() {
70882
- return this._languageId;
70883
- }
70884
- get version() {
70885
- return this._version;
70886
- }
70887
- getText(range) {
70888
- if (range) {
70889
- const start = this.offsetAt(range.start);
70890
- const end = this.offsetAt(range.end);
70891
- return this._content.substring(start, end);
70892
- }
70893
- return this._content;
70894
- }
70895
- update(changes, version) {
70896
- for (const change of changes) {
70897
- if (_FullTextDocument.isIncremental(change)) {
70898
- const range = getWellformedRange2(change.range);
70899
- const startOffset = this.offsetAt(range.start);
70900
- const endOffset = this.offsetAt(range.end);
70901
- this._content = this._content.substring(0, startOffset) + change.text + this._content.substring(endOffset, this._content.length);
70902
- const startLine = Math.max(range.start.line, 0);
70903
- const endLine = Math.max(range.end.line, 0);
70904
- let lineOffsets = this._lineOffsets;
70905
- const addedLineOffsets = computeLineOffsets2(change.text, false, startOffset);
70906
- if (endLine - startLine === addedLineOffsets.length) {
70907
- for (let i2 = 0, len = addedLineOffsets.length; i2 < len; i2++) {
70908
- lineOffsets[i2 + startLine + 1] = addedLineOffsets[i2];
70909
- }
70910
- } else {
70911
- if (addedLineOffsets.length < 1e4) {
70912
- lineOffsets.splice(startLine + 1, endLine - startLine, ...addedLineOffsets);
70913
- } else {
70914
- this._lineOffsets = lineOffsets = lineOffsets.slice(0, startLine + 1).concat(addedLineOffsets, lineOffsets.slice(endLine + 1));
70915
- }
70916
- }
70917
- const diff = change.text.length - (endOffset - startOffset);
70918
- if (diff !== 0) {
70919
- for (let i2 = startLine + 1 + addedLineOffsets.length, len = lineOffsets.length; i2 < len; i2++) {
70920
- lineOffsets[i2] = lineOffsets[i2] + diff;
70921
- }
70922
- }
70923
- } else if (_FullTextDocument.isFull(change)) {
70924
- this._content = change.text;
70925
- this._lineOffsets = void 0;
70926
- } else {
70927
- throw new Error("Unknown change event received");
70928
- }
70929
- }
70930
- this._version = version;
70931
- }
70932
- getLineOffsets() {
70933
- if (this._lineOffsets === void 0) {
70934
- this._lineOffsets = computeLineOffsets2(this._content, true);
70935
- }
70936
- return this._lineOffsets;
70937
- }
70938
- positionAt(offset) {
70939
- offset = Math.max(Math.min(offset, this._content.length), 0);
70940
- const lineOffsets = this.getLineOffsets();
70941
- let low = 0, high = lineOffsets.length;
70942
- if (high === 0) {
70943
- return { line: 0, character: offset };
70944
- }
70945
- while (low < high) {
70946
- const mid = Math.floor((low + high) / 2);
70947
- if (lineOffsets[mid] > offset) {
70948
- high = mid;
70949
- } else {
70950
- low = mid + 1;
70951
- }
70952
- }
70953
- const line = low - 1;
70954
- offset = this.ensureBeforeEOL(offset, lineOffsets[line]);
70955
- return { line, character: offset - lineOffsets[line] };
70956
- }
70957
- offsetAt(position) {
70958
- const lineOffsets = this.getLineOffsets();
70959
- if (position.line >= lineOffsets.length) {
70960
- return this._content.length;
70961
- } else if (position.line < 0) {
70962
- return 0;
70963
- }
70964
- const lineOffset = lineOffsets[position.line];
70965
- if (position.character <= 0) {
70966
- return lineOffset;
70967
- }
70968
- const nextLineOffset = position.line + 1 < lineOffsets.length ? lineOffsets[position.line + 1] : this._content.length;
70969
- const offset = Math.min(lineOffset + position.character, nextLineOffset);
70970
- return this.ensureBeforeEOL(offset, lineOffset);
70971
- }
70972
- getLineRange(line) {
70973
- const lineOffsets = this.getLineOffsets();
70974
- if (line >= lineOffsets.length) {
70975
- const lastLine = lineOffsets.length - 1;
70976
- return { start: { line: lastLine, character: 0 }, end: { line: lastLine, character: this._content.length - lineOffsets[lastLine] } };
70977
- } else if (line < 0) {
70978
- return { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } };
70979
- }
70980
- const startOffset = lineOffsets[line];
70981
- const nextLineOffset = line + 1 < lineOffsets.length ? lineOffsets[line + 1] : this._content.length;
70982
- const endOffset = this.ensureBeforeEOL(nextLineOffset, startOffset);
70983
- return { start: { line, character: 0 }, end: { line, character: endOffset - startOffset } };
70984
- }
70985
- getEOLCharacters(line) {
70986
- const lineOffsets = this.getLineOffsets();
70987
- if (line >= lineOffsets.length) {
70988
- return "";
70989
- } else if (line < 0) {
70990
- return "";
70991
- }
70992
- const nextLineOffset = line + 1 < lineOffsets.length ? lineOffsets[line + 1] : this._content.length;
70993
- const eolOffset = this.ensureBeforeEOL(nextLineOffset, lineOffsets[line]);
70994
- return this._content.substring(eolOffset, nextLineOffset);
70995
- }
70996
- ensureBeforeEOL(offset, lineOffset) {
70997
- while (offset > lineOffset && isEOL3(this._content.charCodeAt(offset - 1))) {
70998
- offset--;
70999
- }
71000
- return offset;
71001
- }
71002
- get lineCount() {
71003
- return this.getLineOffsets().length;
71004
- }
71005
- static isIncremental(event) {
71006
- const candidate = event;
71007
- return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range !== void 0 && (candidate.rangeLength === void 0 || typeof candidate.rangeLength === "number");
71008
- }
71009
- static isFull(event) {
71010
- const candidate = event;
71011
- return candidate !== void 0 && candidate !== null && typeof candidate.text === "string" && candidate.range === void 0 && candidate.rangeLength === void 0;
71012
- }
71013
- };
71014
- (function(TextDocument5) {
71015
- function create(uri, languageId, version, content) {
71016
- return new FullTextDocument3(uri, languageId, version, content);
71017
- }
71018
- TextDocument5.create = create;
71019
- function update(document, changes, version) {
71020
- if (document instanceof FullTextDocument3) {
71021
- document.update(changes, version);
71022
- return document;
71023
- } else {
71024
- throw new Error("TextDocument.update: document must be created by TextDocument.create");
71025
- }
71026
- }
71027
- TextDocument5.update = update;
71028
- function applyEdits(document, edits) {
71029
- const text = document.getText();
71030
- const sortedEdits = mergeSort2(edits.map(getWellformedEdit2), (a3, b2) => {
71031
- const diff = a3.range.start.line - b2.range.start.line;
71032
- if (diff === 0) {
71033
- return a3.range.start.character - b2.range.start.character;
71034
- }
71035
- return diff;
71036
- });
71037
- let lastModifiedOffset = 0;
71038
- const spans = [];
71039
- for (const e2 of sortedEdits) {
71040
- const startOffset = document.offsetAt(e2.range.start);
71041
- if (startOffset < lastModifiedOffset) {
71042
- throw new Error("Overlapping edit");
71043
- } else if (startOffset > lastModifiedOffset) {
71044
- spans.push(text.substring(lastModifiedOffset, startOffset));
71045
- }
71046
- if (e2.newText.length) {
71047
- spans.push(e2.newText);
71048
- }
71049
- lastModifiedOffset = document.offsetAt(e2.range.end);
71050
- }
71051
- spans.push(text.substr(lastModifiedOffset));
71052
- return spans.join("");
71053
- }
71054
- TextDocument5.applyEdits = applyEdits;
71055
- })(TextDocument3 || (TextDocument3 = {}));
71056
- }
71057
- });
71058
-
71059
70806
  // node_modules/.aspect_rules_js/source-map@0.6.1/node_modules/source-map/lib/base64.js
71060
70807
  var require_base64 = __commonJS({
71061
70808
  "node_modules/.aspect_rules_js/source-map@0.6.1/node_modules/source-map/lib/base64.js"(exports2) {
@@ -287308,7 +287055,7 @@ var require_completions = __commonJS({
287308
287055
  exports2.readNgCompletionData = readNgCompletionData;
287309
287056
  var lsp = __importStar(require_main4());
287310
287057
  var vscode_css_languageservice_1 = (init_cssLanguageService(), __toCommonJS(cssLanguageService_exports));
287311
- var vscode_languageserver_textdocument_1 = (init_main3(), __toCommonJS(main_exports));
287058
+ var vscode_languageserver_textdocument_1 = (init_main2(), __toCommonJS(main_exports));
287312
287059
  var embedded_support_1 = require_embedded_support();
287313
287060
  var utils_1 = require_utils();
287314
287061
  var text_render_1 = require_text_render();
@@ -287672,10 +287419,10 @@ var require_definitions = __commonJS({
287672
287419
  }
287673
287420
  });
287674
287421
 
287675
- // node_modules/.aspect_rules_js/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js
287676
- var DocumentUri2, URI2, integer2, uinteger2, Position2, Range2, Location2, LocationLink2, Color2, ColorInformation2, ColorPresentation2, FoldingRangeKind2, FoldingRange2, DiagnosticRelatedInformation2, DiagnosticSeverity2, DiagnosticTag2, CodeDescription2, Diagnostic2, Command2, TextEdit2, ChangeAnnotation2, ChangeAnnotationIdentifier2, AnnotatedTextEdit2, TextDocumentEdit2, CreateFile2, RenameFile2, DeleteFile2, WorkspaceEdit2, SnippetTextEdit, TextDocumentIdentifier2, VersionedTextDocumentIdentifier2, OptionalVersionedTextDocumentIdentifier2, LanguageKind, TextDocumentItem2, MarkupKind2, MarkupContent2, CompletionItemKind2, InsertTextFormat2, CompletionItemTag2, InsertReplaceEdit2, InsertTextMode2, ApplyKind, CompletionItemLabelDetails2, CompletionItem2, CompletionList2, MarkedString2, Hover2, ParameterInformation2, SignatureInformation2, DocumentHighlightKind2, DocumentHighlight2, SymbolKind2, SymbolTag2, SymbolInformation2, WorkspaceSymbol2, DocumentSymbol2, CodeActionKind2, CodeActionTriggerKind2, CodeActionContext2, CodeActionTag, CodeAction2, CodeLens2, FormattingOptions2, DocumentLink2, SelectionRange2, SemanticTokenTypes2, SemanticTokenModifiers2, SemanticTokens2, InlineValueText2, InlineValueVariableLookup2, InlineValueEvaluatableExpression2, InlineValueContext2, InlayHintKind3, InlayHintLabelPart2, InlayHint2, StringValue2, InlineCompletionItem2, InlineCompletionList2, InlineCompletionTriggerKind2, SelectedCompletionInfo2, InlineCompletionContext2, WorkspaceFolder2, TextDocument4, FullTextDocument4, Is2;
287677
- var init_main4 = __esm({
287678
- "node_modules/.aspect_rules_js/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js"() {
287422
+ // node_modules/.aspect_rules_js/vscode-languageserver-types@3.18.5/node_modules/vscode-languageserver-types/lib/esm/main.js
287423
+ var DocumentUri2, URI2, integer2, uinteger2, Position2, Range2, Location2, LocationLink2, Color2, ColorInformation2, ColorPresentation2, FoldingRangeKind2, FoldingRange2, DiagnosticRelatedInformation2, DiagnosticSeverity2, DiagnosticTag2, CodeDescription2, Diagnostic2, Command2, TextEdit2, ChangeAnnotation2, ChangeAnnotationIdentifier2, AnnotatedTextEdit2, TextDocumentEdit2, CreateFile2, RenameFile2, DeleteFile2, WorkspaceEdit2, SnippetTextEdit, TextDocumentIdentifier2, VersionedTextDocumentIdentifier2, OptionalVersionedTextDocumentIdentifier2, LanguageKind, TextDocumentItem2, MarkupKind2, MarkupContent2, CompletionItemKind2, InsertTextFormat2, CompletionItemTag2, InsertReplaceEdit2, InsertTextMode2, ApplyKind, CompletionItemLabelDetails2, CompletionItem2, CompletionList2, MarkedString2, Hover2, ParameterInformation2, SignatureInformation2, DocumentHighlightKind2, DocumentHighlight2, SymbolKind2, SymbolTag2, SymbolInformation2, WorkspaceSymbol2, DocumentSymbol2, CodeActionKind2, CodeActionTriggerKind2, CodeActionContext2, CodeActionTag, CodeAction2, CodeLens2, FormattingOptions2, DocumentLink2, SelectionRange2, SemanticTokenTypes2, SemanticTokenModifiers2, SemanticTokens2, InlineValueText2, InlineValueVariableLookup2, InlineValueEvaluatableExpression2, InlineValueContext2, InlayHintKind3, InlayHintLabelPart2, InlayHint2, StringValue2, InlineCompletionItem2, InlineCompletionList2, InlineCompletionTriggerKind2, SelectedCompletionInfo2, InlineCompletionContext2, WorkspaceFolder2, TextDocument3, FullTextDocument3, Is2;
287424
+ var init_main3 = __esm({
287425
+ "node_modules/.aspect_rules_js/vscode-languageserver-types@3.18.5/node_modules/vscode-languageserver-types/lib/esm/main.js"() {
287679
287426
  "use strict";
287680
287427
  (function(DocumentUri3) {
287681
287428
  function is(value) {
@@ -287802,7 +287549,7 @@ var init_main4 = __esm({
287802
287549
  ColorPresentation3.create = create;
287803
287550
  function is(value) {
287804
287551
  const candidate = value;
287805
- return Is2.objectLiteral(candidate) && Is2.string(candidate.label) && (Is2.undefined(candidate.textEdit) || TextEdit2.is(candidate)) && (Is2.undefined(candidate.additionalTextEdits) || Is2.typedArray(candidate.additionalTextEdits, TextEdit2.is));
287552
+ return Is2.objectLiteral(candidate) && Is2.string(candidate.label) && (Is2.undefined(candidate.textEdit) || TextEdit2.is(candidate.textEdit)) && (Is2.undefined(candidate.additionalTextEdits) || Is2.typedArray(candidate.additionalTextEdits, TextEdit2.is));
287806
287553
  }
287807
287554
  ColorPresentation3.is = is;
287808
287555
  })(ColorPresentation2 || (ColorPresentation2 = {}));
@@ -287834,7 +287581,7 @@ var init_main4 = __esm({
287834
287581
  FoldingRange3.create = create;
287835
287582
  function is(value) {
287836
287583
  const candidate = value;
287837
- return Is2.objectLiteral(candidate) && Is2.uinteger(candidate.startLine) && Is2.uinteger(candidate.startLine) && (Is2.undefined(candidate.startCharacter) || Is2.uinteger(candidate.startCharacter)) && (Is2.undefined(candidate.endCharacter) || Is2.uinteger(candidate.endCharacter)) && (Is2.undefined(candidate.kind) || Is2.string(candidate.kind));
287584
+ return Is2.objectLiteral(candidate) && Is2.uinteger(candidate.startLine) && Is2.uinteger(candidate.endLine) && (Is2.undefined(candidate.startCharacter) || Is2.uinteger(candidate.startCharacter)) && (Is2.undefined(candidate.endCharacter) || Is2.uinteger(candidate.endCharacter)) && (Is2.undefined(candidate.kind) || Is2.string(candidate.kind));
287838
287585
  }
287839
287586
  FoldingRange3.is = is;
287840
287587
  })(FoldingRange2 || (FoldingRange2 = {}));
@@ -288686,19 +288433,19 @@ var init_main4 = __esm({
288686
288433
  }
288687
288434
  WorkspaceFolder3.is = is;
288688
288435
  })(WorkspaceFolder2 || (WorkspaceFolder2 = {}));
288689
- (function(TextDocument5) {
288436
+ (function(TextDocument4) {
288690
288437
  function create(uri, languageId, version, content) {
288691
- return new FullTextDocument4(uri, languageId, version, content);
288438
+ return new FullTextDocument3(uri, languageId, version, content);
288692
288439
  }
288693
- TextDocument5.create = create;
288440
+ TextDocument4.create = create;
288694
288441
  function is(value) {
288695
288442
  const candidate = value;
288696
288443
  return Is2.defined(candidate) && Is2.string(candidate.uri) && (Is2.undefined(candidate.languageId) || Is2.string(candidate.languageId)) && Is2.uinteger(candidate.lineCount) && Is2.func(candidate.getText) && Is2.func(candidate.positionAt) && Is2.func(candidate.offsetAt) ? true : false;
288697
288444
  }
288698
- TextDocument5.is = is;
288445
+ TextDocument4.is = is;
288699
288446
  function applyEdits(document, edits) {
288700
288447
  let text = document.getText();
288701
- const sortedEdits = mergeSort3(edits, (a3, b2) => {
288448
+ const sortedEdits = mergeSort2(edits, (a3, b2) => {
288702
288449
  const diff = a3.range.start.line - b2.range.start.line;
288703
288450
  if (diff === 0) {
288704
288451
  return a3.range.start.character - b2.range.start.character;
@@ -288719,16 +288466,16 @@ var init_main4 = __esm({
288719
288466
  }
288720
288467
  return text;
288721
288468
  }
288722
- TextDocument5.applyEdits = applyEdits;
288723
- function mergeSort3(data, compare) {
288469
+ TextDocument4.applyEdits = applyEdits;
288470
+ function mergeSort2(data, compare) {
288724
288471
  if (data.length <= 1) {
288725
288472
  return data;
288726
288473
  }
288727
288474
  const p2 = data.length / 2 | 0;
288728
288475
  const left = data.slice(0, p2);
288729
288476
  const right = data.slice(p2);
288730
- mergeSort3(left, compare);
288731
- mergeSort3(right, compare);
288477
+ mergeSort2(left, compare);
288478
+ mergeSort2(right, compare);
288732
288479
  let leftIdx = 0;
288733
288480
  let rightIdx = 0;
288734
288481
  let i2 = 0;
@@ -288748,8 +288495,8 @@ var init_main4 = __esm({
288748
288495
  }
288749
288496
  return data;
288750
288497
  }
288751
- })(TextDocument4 || (TextDocument4 = {}));
288752
- FullTextDocument4 = class {
288498
+ })(TextDocument3 || (TextDocument3 = {}));
288499
+ FullTextDocument3 = class {
288753
288500
  constructor(uri, languageId, version, content) {
288754
288501
  this._uri = uri;
288755
288502
  this._languageId = languageId;
@@ -288889,7 +288636,7 @@ var init_main4 = __esm({
288889
288636
  var TokenType2, ScannerState, ClientCapabilities2, FileType2;
288890
288637
  var init_htmlLanguageTypes = __esm({
288891
288638
  "node_modules/.aspect_rules_js/vscode-html-languageservice@5.6.2/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageTypes.js"() {
288892
- init_main4();
288639
+ init_main3();
288893
288640
  init_main2();
288894
288641
  (function(TokenType3) {
288895
288642
  TokenType3[TokenType3["StartCommentTag"] = 0] = "StartCommentTag";
@@ -296346,7 +296093,7 @@ function format2(document, range, options2) {
296346
296093
  while (extendedStart > 0 && isWhitespace2(value, extendedStart - 1)) {
296347
296094
  extendedStart--;
296348
296095
  }
296349
- if (extendedStart === 0 || isEOL4(value, extendedStart - 1)) {
296096
+ if (extendedStart === 0 || isEOL3(value, extendedStart - 1)) {
296350
296097
  startOffset = extendedStart;
296351
296098
  } else {
296352
296099
  if (extendedStart < startOffset) {
@@ -296358,7 +296105,7 @@ function format2(document, range, options2) {
296358
296105
  while (extendedEnd < value.length && isWhitespace2(value, extendedEnd)) {
296359
296106
  extendedEnd++;
296360
296107
  }
296361
- if (extendedEnd === value.length || isEOL4(value, extendedEnd)) {
296108
+ if (extendedEnd === value.length || isEOL3(value, extendedEnd)) {
296362
296109
  endOffset = extendedEnd;
296363
296110
  }
296364
296111
  range = Range2.create(document.positionAt(startOffset), document.positionAt(endOffset));
@@ -296461,7 +296208,7 @@ function computeIndentLevel2(content, offset, options2) {
296461
296208
  }
296462
296209
  return Math.floor(nChars / tabSize);
296463
296210
  }
296464
- function isEOL4(text, offset) {
296211
+ function isEOL3(text, offset) {
296465
296212
  return "\r\n".indexOf(text.charAt(offset)) !== -1;
296466
296213
  }
296467
296214
  function isWhitespace2(text, offset) {
@@ -309280,7 +309027,7 @@ var require_folding = __commonJS({
309280
309027
  var lsp = __importStar(require_main4());
309281
309028
  var vscode_html_languageservice_1 = (init_htmlLanguageService(), __toCommonJS(htmlLanguageService_exports));
309282
309029
  var vscode_css_languageservice_1 = (init_cssLanguageService(), __toCommonJS(cssLanguageService_exports));
309283
- var vscode_languageserver_textdocument_1 = (init_main3(), __toCommonJS(main_exports));
309030
+ var vscode_languageserver_textdocument_1 = (init_main2(), __toCommonJS(main_exports));
309284
309031
  var embedded_support_1 = require_embedded_support();
309285
309032
  var utils_1 = require_utils();
309286
309033
  var htmlLS = (0, vscode_html_languageservice_1.getLanguageService)();
@@ -309328,7 +309075,7 @@ var require_hover = __commonJS({
309328
309075
  Object.defineProperty(exports2, "__esModule", { value: true });
309329
309076
  exports2.onHover = onHover;
309330
309077
  var vscode_css_languageservice_1 = (init_cssLanguageService(), __toCommonJS(cssLanguageService_exports));
309331
- var vscode_languageserver_textdocument_1 = (init_main3(), __toCommonJS(main_exports));
309078
+ var vscode_languageserver_textdocument_1 = (init_main2(), __toCommonJS(main_exports));
309332
309079
  var embedded_support_1 = require_embedded_support();
309333
309080
  var utils_1 = require_utils();
309334
309081
  var text_render_1 = require_text_render();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@angular/language-server",
3
3
  "description": "LSP server for Angular Language Service",
4
- "version": "22.2.3",
4
+ "version": "22.2.5",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/angular/angular.git",
@@ -17,7 +17,7 @@
17
17
  "ngserver": "./bin/ngserver"
18
18
  },
19
19
  "dependencies": {
20
- "@angular/language-service": "22.2.3",
20
+ "@angular/language-service": "22.2.5",
21
21
  "typescript": "6.0.3"
22
22
  },
23
23
  "devDependencies": {