fix linter

This commit is contained in:
Vladimir Matveev 2016-06-16 15:47:01 -07:00
parent 7c0927d752
commit 04d617de8d
2 changed files with 3 additions and 5 deletions

View File

@ -729,7 +729,7 @@ namespace ts.server {
if (!project) {
throw Errors.NoProject;
}
return project.languageService.getFormattingEditsForRange(file, args.position, args.endPosition, args.options);
}
@ -739,7 +739,7 @@ namespace ts.server {
if (!project) {
throw Errors.NoProject;
}
return project.languageService.getFormattingEditsForDocument(file, args.options);
}
@ -749,7 +749,6 @@ namespace ts.server {
if (!project) {
throw Errors.NoProject;
}
return project.languageService.getFormattingEditsAfterKeystroke(file, args.position, args.key, args.options);
}

View File

@ -1894,7 +1894,6 @@ namespace ts {
}
}
let x = 1;
class SyntaxTreeCache {
// For our syntactic only features, we also keep a cache of the syntax tree for the
// currently edited file.
@ -1927,7 +1926,7 @@ namespace ts {
sourceFile = updateLanguageServiceSourceFile(this.currentSourceFile, scriptSnapshot, version, editRange);
}
if (sourceFile) {
if (sourceFile) {
// All done, ensure state is up to date
this.currentFileVersion = version;
this.currentFileName = fileName;