Skip to content

Commit fb9e84f

Browse files
authored
release: cut the 0.1.7 release (#160)
Fixes the package name to remove duplicate market place entry. Harden against common a null encountered in the wild. Update to 0.1.7 Fixes: #157, #156
1 parent ff96872 commit fb9e84f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "ng-language-service",
2+
"name": "ng-template",
33
"displayName": "Angular Language Service",
44
"description": "Editor services for Angular templates",
5-
"version": "0.1.6",
5+
"version": "0.1.7",
66
"publisher": "Angular",
77
"icon": "angular.png",
88
"engines": {

server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "ng-language-service",
2+
"name": "ng-template",
33
"description": "Angular Language Service.",
4-
"version": "0.1.6",
4+
"version": "0.1.7",
55
"author": "Angular",
66
"license": "MIT",
77
"engines": {

server/src/editorServices.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2749,6 +2749,7 @@ export class LineNode implements LineCollection {
27492749
// assume (rangeStart < this.totalChars) && (rangeLength <= this.totalChars)
27502750
let childIndex = 0;
27512751
let child = this.children[0];
2752+
if (!child) return;
27522753
let childCharCount = child.charCount();
27532754
// find sub-tree containing start
27542755
let adjustedStart = rangeStart;
@@ -2757,6 +2758,7 @@ export class LineNode implements LineCollection {
27572758
adjustedStart -= childCharCount;
27582759
childIndex++;
27592760
child = this.children[childIndex];
2761+
if (!child) break;
27602762
childCharCount = child.charCount();
27612763
}
27622764
// Case I: both start and end of range in same subtree
@@ -2781,6 +2783,7 @@ export class LineNode implements LineCollection {
27812783
adjustedLength -= childCharCount;
27822784
childIndex++;
27832785
child = this.children[childIndex];
2786+
if (!child) break;
27842787
childCharCount = child.charCount();
27852788
}
27862789
if (adjustedLength > 0) {

0 commit comments

Comments
 (0)