@@ -143,7 +143,7 @@ export class MessageProcessor {
143
143
}
144
144
145
145
if ( ! existsSync ( this . _tmpDirBase ) ) {
146
- mkdirp ( this . _tmpDirBase ) ;
146
+ void mkdirp ( this . _tmpDirBase ) ;
147
147
}
148
148
}
149
149
get connection ( ) : Connection {
@@ -350,7 +350,7 @@ export class MessageProcessor {
350
350
uri . match ( 'package.json' ) ?. length && require ( uri ) ?. graphql ;
351
351
if ( hasGraphQLConfigFile || hasPackageGraphQLConfig ) {
352
352
this . _logger . info ( 'updating graphql config' ) ;
353
- this . _updateGraphQLConfig ( ) ;
353
+ await this . _updateGraphQLConfig ( ) ;
354
354
return { uri, diagnostics : [ ] } ;
355
355
}
356
356
// update graphql config only when graphql config is saved!
@@ -703,12 +703,12 @@ export class MessageProcessor {
703
703
return { uri, diagnostics } ;
704
704
}
705
705
if ( change . type === FileChangeTypeKind . Deleted ) {
706
- this . _graphQLCache . updateFragmentDefinitionCache (
706
+ await this . _graphQLCache . updateFragmentDefinitionCache (
707
707
this . _graphQLCache . getGraphQLConfig ( ) . dirpath ,
708
708
change . uri ,
709
709
false ,
710
710
) ;
711
- this . _graphQLCache . updateObjectTypeDefinitionCache (
711
+ await this . _graphQLCache . updateObjectTypeDefinitionCache (
712
712
this . _graphQLCache . getGraphQLConfig ( ) . dirpath ,
713
713
change . uri ,
714
714
false ,
@@ -924,7 +924,7 @@ export class MessageProcessor {
924
924
version = schemaDocument . version ++ ;
925
925
}
926
926
const schemaText = readFileSync ( uri , 'utf8' ) ;
927
- this . _cacheSchemaText ( schemaUri , schemaText , version ) ;
927
+ await this . _cacheSchemaText ( schemaUri , schemaText , version ) ;
928
928
}
929
929
}
930
930
_getTmpProjectPath (
@@ -937,7 +937,7 @@ export class MessageProcessor {
937
937
const basePath = path . join ( this . _tmpDirBase , workspaceName ) ;
938
938
let projectTmpPath = path . join ( basePath , 'projects' , project . name ) ;
939
939
if ( ! existsSync ( projectTmpPath ) ) {
940
- mkdirp ( projectTmpPath ) ;
940
+ void mkdirp ( projectTmpPath ) ;
941
941
}
942
942
if ( appendPath ) {
943
943
projectTmpPath = path . join ( projectTmpPath , appendPath ) ;
@@ -963,7 +963,7 @@ export class MessageProcessor {
963
963
) ;
964
964
} else {
965
965
try {
966
- this . _cacheSchemaFile ( uri , project ) ;
966
+ await this . _cacheSchemaFile ( uri , project ) ;
967
967
} catch {
968
968
// this string may be an SDL string even, how do we even evaluate this?
969
969
}
0 commit comments