File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -811,14 +811,15 @@ function realActivate(context: ExtensionContext): void {
811
811
let result : boolean | undefined = undefined ;
812
812
const languageConfig = Workspace . getConfiguration ( undefined , document . uri ) . get < LanguageSettings > ( `[${ document . languageId } ]` ) ;
813
813
814
- function isEnabled ( value : CodeActionsOnSave | string [ ] ) : boolean {
814
+ function isEnabled ( value : CodeActionsOnSave | string [ ] ) : boolean | undefined {
815
815
if ( value === undefined || value === null ) {
816
- return false ;
816
+ return undefined ;
817
817
}
818
818
if ( Array . isArray ( value ) ) {
819
- return value . some ( ( element ) => { return element === 'source.fixAll.eslint' || element === 'source.fixAll' ; } ) ;
819
+ const result = value . some ( ( element ) => { return element === 'source.fixAll.eslint' || element === 'source.fixAll' ; } ) ;
820
+ return result === true ? true : undefined ;
820
821
} else {
821
- return ( value [ 'source.fixAll.eslint' ] ?? value [ 'source.fixAll' ] ) === true ;
822
+ return value [ 'source.fixAll.eslint' ] ?? value [ 'source.fixAll' ] ;
822
823
}
823
824
}
824
825
You can’t perform that action at this time.
0 commit comments