File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -321,9 +321,6 @@ namespace ts.codefix {
321
321
* foo
322
322
* } from "./module";
323
323
*/
324
- // const startLine = getLineOfLocalPosition(sourceFile, importList.getStart());
325
- // const endLine = getLineOfLocalPosition(sourceFile, importList.getEnd());
326
- // const oneImportPerLine = endLine - startLine > importList.elements.length;
327
324
return createChangeTracker ( ) . insertNodeInListAfter (
328
325
sourceFile ,
329
326
importList . elements [ importList . elements . length - 1 ] ,
@@ -390,10 +387,6 @@ namespace ts.codefix {
390
387
// if this file doesn't have any import statements, insert an import statement and then insert a new line
391
388
// between the only import statement and user code. Otherwise just insert the statement because chances
392
389
// are there are already a new line seperating code and import statements.
393
- // const newText = cachedNewImportInsertPosition === sourceFile.getStart()
394
- // ? `${importStatementText};${context.newLineCharacter}${context.newLineCharacter}`
395
- // : `${context.newLineCharacter}${importStatementText};`;
396
-
397
390
return createCodeAction (
398
391
Diagnostics . Import_0_from_1 ,
399
392
[ name , `"${ moduleSpecifierWithoutQuotes } "` ] ,
You can’t perform that action at this time.
0 commit comments