File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1101,14 +1101,14 @@ export class OtherSettings {
11011101}
11021102
11031103export function hasFileAssociation ( fileName : string ) : boolean {
1104- const associations : Associations = new OtherSettings ( ) . filesAssociations ;
1104+ const otherSettings : OtherSettings = new OtherSettings ( )
1105+ const associations : Associations = otherSettings . filesAssociations ;
11051106 if ( associations [ fileName ] ) {
11061107 return true ;
1107- } else {
1108- for ( const pattern in associations ) {
1109- if ( pattern . startsWith ( '*.' ) && fileName . endsWith ( pattern . slice ( 1 ) ) ) {
1110- return true ;
1111- }
1108+ }
1109+ for ( const pattern in associations ) {
1110+ if ( pattern . startsWith ( '*.' ) && fileName . endsWith ( pattern . slice ( 1 ) ) ) {
1111+ return true ;
11121112 }
11131113 }
11141114 return false ;
You can’t perform that action at this time.
0 commit comments