mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-23 07:07:09 -05:00
fix linter
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user