@@ -26,7 +26,7 @@ export default (proxy: ts.LanguageService, languageService: ts.LanguageService,
2626 let prior : readonly ts . CodeFixAction [ ]
2727 try {
2828 const { importFixName } = tsFull . codefix
29- const ignoreAutoImportSetting = getIgnoreAutoImportSetting ( c )
29+ const ignoreAutoImportsSetting = getIgnoreAutoImportSetting ( c )
3030 const sortFn = changeSortingOfAutoImport ( c , ( node as ts . Identifier ) . text )
3131 tsFull . codefix . createCodeFixAction = ( fixName , changes , description , fixId , fixAllDescription , command ) => {
3232 if ( fixName !== importFixName ) return oldCreateCodeFixAction ( fixName , changes , description , fixId , fixAllDescription , command )
@@ -35,7 +35,7 @@ export default (proxy: ts.LanguageService, languageService: ts.LanguageService,
3535 if ( placeholderIndexesInfo ) {
3636 const targetModule = description [ placeholderIndexesInfo [ 1 ] + 1 ]
3737 const symbolName = placeholderIndexesInfo [ 2 ] !== undefined ? description [ placeholderIndexesInfo [ 2 ] + 1 ] : ( node as ts . Identifier ) . text
38- const toIgnore = isAutoImportEntryShouldBeIgnored ( ignoreAutoImportSetting , targetModule , symbolName )
38+ const toIgnore = isAutoImportEntryShouldBeIgnored ( ignoreAutoImportsSetting , targetModule , symbolName )
3939 if ( toIgnore ) {
4040 return {
4141 fixName : 'IGNORE' ,
@@ -162,7 +162,7 @@ export default (proxy: ts.LanguageService, languageService: ts.LanguageService,
162162 sourceFile,
163163 }
164164 const errorCodes = getFixAllErrorCodes ( )
165- const ignoreAutoImportSetting = getIgnoreAutoImportSetting ( c )
165+ const ignoreAutoImportsSetting = getIgnoreAutoImportSetting ( c )
166166 for ( const diagnostic of semanticDiagnostics ) {
167167 if ( ! errorCodes . includes ( diagnostic . code ) ) continue
168168 const oldFirst = tsFull . first
@@ -175,7 +175,7 @@ export default (proxy: ts.LanguageService, languageService: ts.LanguageService,
175175 if ( fix . kind === ( ImportFixKind . PromoteTypeOnly as number ) ) return false
176176 const shouldBeIgnored =
177177 c ( 'autoImport.alwaysIgnoreInImportAll' ) . includes ( fix . moduleSpecifier ) ||
178- isAutoImportEntryShouldBeIgnored ( ignoreAutoImportSetting , fix . moduleSpecifier , symbolName )
178+ isAutoImportEntryShouldBeIgnored ( ignoreAutoImportsSetting , fix . moduleSpecifier , symbolName )
179179 return ! shouldBeIgnored
180180 } ) ,
181181 ( { fix } ) => sortFn ( fix . moduleSpecifier ) ,
0 commit comments