Skip to content

Commit

Permalink
fix: ts semantic error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoon committed May 3, 2018
1 parent 1fdf163 commit f79615b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ function runPrettier(command, cb) {
}

var files = stdout
.split('\n')
.split(/\r?\n/)
.filter(f => {
return f.endsWith('.ts') || f.endsWith('.js');
})
.join(' ');

console.log(files);

if (!files) {
return cb();
}
Expand Down
2 changes: 1 addition & 1 deletion src/common/motion/position.ts
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ export class Position extends vscode.Position {
);

if (newCharacter !== undefined) {
return new Position(currentLine, newCharacter).getRightThroughLineBreaks();
return new Position(currentLine, <number>newCharacter).getRightThroughLineBreaks();
}
}

Expand Down

0 comments on commit f79615b

Please sign in to comment.