@angular/language-server 22.1.7 → 22.1.8

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 +9 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -286708,6 +286708,14 @@ var require_embedded_support = __commonJS({
286708
286708
  }).join("\n");
286709
286709
  for (const region of inlineTemplateNodes) {
286710
286710
  content = content.slice(0, region.getStart(sf) + 1) + documentText.slice(region.getStart(sf) + 1, region.getEnd() - 1) + content.slice(region.getEnd() - 1);
286711
+ if (ts.isTemplateExpression(region)) {
286712
+ let substitutionStart = region.head.end - 2;
286713
+ for (const span of region.templateSpans) {
286714
+ const substitutionEnd = span.literal.getStart(sf) + 1;
286715
+ content = content.slice(0, substitutionStart) + documentText.slice(substitutionStart, substitutionEnd).replace(/[^\n]/g, " ") + content.slice(substitutionEnd);
286716
+ substitutionStart = span.literal.end - 2;
286717
+ }
286718
+ }
286711
286719
  }
286712
286720
  return content;
286713
286721
  }
@@ -286739,7 +286747,7 @@ var require_embedded_support = __commonJS({
286739
286747
  return assignment !== null && getClassDeclFromDecoratorProp(assignment) !== null;
286740
286748
  }
286741
286749
  function isInlineTemplateNode(node) {
286742
- return ts.isStringLiteralLike(node) ? isAssignmentToPropertyWithName(node, "template") : false;
286750
+ return ts.isStringLiteralLike(node) || ts.isTemplateExpression(node) ? isAssignmentToPropertyWithName(node, "template") : false;
286743
286751
  }
286744
286752
  function getPropertyAssignmentFromValue(value, key) {
286745
286753
  const propAssignment = value.parent;
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.1.7",
4
+ "version": "22.1.8",
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.1.7",
20
+ "@angular/language-service": "22.1.8",
21
21
  "typescript": "6.0.3"
22
22
  },
23
23
  "devDependencies": {