Skip to content

Commit

Permalink
release: cut the 0.1.7 release (#160)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
chuckjaz authored Aug 31, 2017
1 parent ff96872 commit fb9e84f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "ng-language-service",
"name": "ng-template",
"displayName": "Angular Language Service",
"description": "Editor services for Angular templates",
"version": "0.1.6",
"version": "0.1.7",
"publisher": "Angular",
"icon": "angular.png",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ng-language-service",
"name": "ng-template",
"description": "Angular Language Service.",
"version": "0.1.6",
"version": "0.1.7",
"author": "Angular",
"license": "MIT",
"engines": {
Expand Down
3 changes: 3 additions & 0 deletions server/src/editorServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2749,6 +2749,7 @@ export class LineNode implements LineCollection {
// assume (rangeStart < this.totalChars) && (rangeLength <= this.totalChars)
let childIndex = 0;
let child = this.children[0];
if (!child) return;
let childCharCount = child.charCount();
// find sub-tree containing start
let adjustedStart = rangeStart;
Expand All @@ -2757,6 +2758,7 @@ export class LineNode implements LineCollection {
adjustedStart -= childCharCount;
childIndex++;
child = this.children[childIndex];
if (!child) break;
childCharCount = child.charCount();
}
// Case I: both start and end of range in same subtree
Expand All @@ -2781,6 +2783,7 @@ export class LineNode implements LineCollection {
adjustedLength -= childCharCount;
childIndex++;
child = this.children[childIndex];
if (!child) break;
childCharCount = child.charCount();
}
if (adjustedLength > 0) {
Expand Down

0 comments on commit fb9e84f

Please sign in to comment.