@angular/language-server 22.3.0-next.2 → 22.3.0-next.4

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 +13 -6
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -14516,7 +14516,7 @@ 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.16/node_modules/vscode-languageserver-textdocument/lib/esm/main.js
14520
14520
  var main_exports = {};
14521
14521
  __export(main_exports, {
14522
14522
  TextDocument: () => TextDocument2
@@ -14582,7 +14582,7 @@ function getWellformedEdit(textEdit) {
14582
14582
  }
14583
14583
  var FullTextDocument2, TextDocument2;
14584
14584
  var init_main2 = __esm({
14585
- "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.16/node_modules/vscode-languageserver-textdocument/lib/esm/main.js"() {
14586
14586
  "use strict";
14587
14587
  FullTextDocument2 = class _FullTextDocument {
14588
14588
  constructor(uri, languageId, version, content) {
@@ -14616,6 +14616,13 @@ var init_main2 = __esm({
14616
14616
  const startOffset = this.offsetAt(range.start);
14617
14617
  const endOffset = this.offsetAt(range.end);
14618
14618
  this._content = this._content.substring(0, startOffset) + change.text + this._content.substring(endOffset, this._content.length);
14619
+ const insertedEndOffset = startOffset + change.text.length;
14620
+ const crlfAtStart = this._content.charCodeAt(startOffset - 1) === 13 && this._content.charCodeAt(startOffset) === 10;
14621
+ const crlfAtEnd = this._content.charCodeAt(insertedEndOffset - 1) === 13 && this._content.charCodeAt(insertedEndOffset) === 10;
14622
+ if (crlfAtStart || crlfAtEnd) {
14623
+ this._lineOffsets = void 0;
14624
+ continue;
14625
+ }
14619
14626
  const startLine = Math.max(range.start.line, 0);
14620
14627
  const endLine = Math.max(range.end.line, 0);
14621
14628
  let lineOffsets = this._lineOffsets;
@@ -287419,10 +287426,10 @@ var require_definitions = __commonJS({
287419
287426
  }
287420
287427
  });
287421
287428
 
287422
- // node_modules/.aspect_rules_js/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js
287429
+ // node_modules/.aspect_rules_js/vscode-languageserver-types@3.18.5/node_modules/vscode-languageserver-types/lib/esm/main.js
287423
287430
  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
287431
  var init_main3 = __esm({
287425
- "node_modules/.aspect_rules_js/vscode-languageserver-types@3.18.4/node_modules/vscode-languageserver-types/lib/esm/main.js"() {
287432
+ "node_modules/.aspect_rules_js/vscode-languageserver-types@3.18.5/node_modules/vscode-languageserver-types/lib/esm/main.js"() {
287426
287433
  "use strict";
287427
287434
  (function(DocumentUri3) {
287428
287435
  function is(value) {
@@ -287549,7 +287556,7 @@ var init_main3 = __esm({
287549
287556
  ColorPresentation3.create = create;
287550
287557
  function is(value) {
287551
287558
  const candidate = value;
287552
- 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));
287559
+ 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));
287553
287560
  }
287554
287561
  ColorPresentation3.is = is;
287555
287562
  })(ColorPresentation2 || (ColorPresentation2 = {}));
@@ -287581,7 +287588,7 @@ var init_main3 = __esm({
287581
287588
  FoldingRange3.create = create;
287582
287589
  function is(value) {
287583
287590
  const candidate = value;
287584
- 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));
287591
+ 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));
287585
287592
  }
287586
287593
  FoldingRange3.is = is;
287587
287594
  })(FoldingRange2 || (FoldingRange2 = {}));
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.3.0-next.2",
4
+ "version": "22.3.0-next.4",
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.3.0-next.2",
20
+ "@angular/language-service": "22.3.0-next.4",
21
21
  "typescript": "6.0.3"
22
22
  },
23
23
  "devDependencies": {
@@ -25,7 +25,7 @@
25
25
  "vscode-html-languageservice": "5.6.2",
26
26
  "vscode-css-languageservice": "6.3.10",
27
27
  "vscode-languageserver": "9.0.1",
28
- "vscode-languageserver-textdocument": "1.0.15",
28
+ "vscode-languageserver-textdocument": "1.0.16",
29
29
  "vscode-uri": "3.2.0"
30
30
  }
31
31
  }