respond to review comment

This commit is contained in:
Jesse Trinity
2020-05-15 12:44:43 -07:00
parent 26eaf706ab
commit 81d1732fd8
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -287,9 +287,7 @@ namespace ts.textChanges {
}
public deleteNode(sourceFile: SourceFile, node: Node, options: ConfigurableStartEnd = { leadingTriviaOption: LeadingTriviaOption.IncludeAll }): void {
const startPosition = getAdjustedStartPosition(sourceFile, node, options);
const endPosition = getAdjustedEndPosition(sourceFile, node, options);
this.deleteRange(sourceFile, { pos: startPosition, end: endPosition });
this.deleteRange(sourceFile, getAdjustedRange(sourceFile, node, node, options));
}
public deleteModifier(sourceFile: SourceFile, modifier: Modifier): void {
@@ -591,7 +591,7 @@ import "lib1";
},
{ path: "/lib1.ts", content: "" },
{ path: "/lib2.ts", content: "" });
testOrganizeImports("SortComments",
{
path: "/test.ts",