mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 20:25:23 -06:00
fix linter
This commit is contained in:
parent
7c0927d752
commit
04d617de8d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user