diff --git a/packages/graphql-language-service-server/src/MessageProcessor.ts b/packages/graphql-language-service-server/src/MessageProcessor.ts index 0f4978a6ef0..e22160b7e89 100644 --- a/packages/graphql-language-service-server/src/MessageProcessor.ts +++ b/packages/graphql-language-service-server/src/MessageProcessor.ts @@ -89,10 +89,10 @@ export class MessageProcessor { _graphQLCache!: GraphQLCache; _graphQLConfig: GraphQLConfig | undefined; _languageService!: GraphQLLanguageService; - _textDocumentCache: Map; - _isInitialized: boolean; + _textDocumentCache = new Map(); + _isInitialized = false; _isGraphQLConfigMissing: boolean | null = null; - _willShutdown: boolean; + _willShutdown = false; _logger: Logger; _extensions?: GraphQLExtensionDeclaration[]; _parser: (text: string, uri: string) => CachedContent[]; @@ -124,9 +124,6 @@ export class MessageProcessor { connection: Connection; }) { this._connection = connection; - this._textDocumentCache = new Map(); - this._isInitialized = false; - this._willShutdown = false; this._logger = logger; this._graphQLConfig = config; this._parser = (text, uri) => {