Skip to content

Commit

Permalink
[MessageProcessor] move some class field declaration outside of const…
Browse files Browse the repository at this point in the history
…ructor (#3089)
  • Loading branch information
dimaMachina authored Mar 19, 2023
1 parent 8f3775c commit b82df99
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ export class MessageProcessor {
_graphQLCache!: GraphQLCache;
_graphQLConfig: GraphQLConfig | undefined;
_languageService!: GraphQLLanguageService;
_textDocumentCache: Map<string, CachedDocumentType>;
_isInitialized: boolean;
_textDocumentCache = new Map<string, CachedDocumentType>();
_isInitialized = false;
_isGraphQLConfigMissing: boolean | null = null;
_willShutdown: boolean;
_willShutdown = false;
_logger: Logger;
_extensions?: GraphQLExtensionDeclaration[];
_parser: (text: string, uri: string) => CachedContent[];
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit b82df99

Please sign in to comment.