Skip to content

Commit 6f11d93

Browse files
committed
add comments
1 parent 26c6c1c commit 6f11d93

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/services/codefixes/importFixes.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,9 +321,6 @@ namespace ts.codefix {
321321
* foo
322322
* } from "./module";
323323
*/
324-
// const startLine = getLineOfLocalPosition(sourceFile, importList.getStart());
325-
// const endLine = getLineOfLocalPosition(sourceFile, importList.getEnd());
326-
// const oneImportPerLine = endLine - startLine > importList.elements.length;
327324
return createChangeTracker().insertNodeInListAfter(
328325
sourceFile,
329326
importList.elements[importList.elements.length - 1],
@@ -390,10 +387,6 @@ namespace ts.codefix {
390387
// if this file doesn't have any import statements, insert an import statement and then insert a new line
391388
// between the only import statement and user code. Otherwise just insert the statement because chances
392389
// 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-
397390
return createCodeAction(
398391
Diagnostics.Import_0_from_1,
399392
[name, `"${moduleSpecifierWithoutQuotes}"`],

0 commit comments

Comments
 (0)