From e8654b616700acfc06f659f14a1bda065f2929cc Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Sun, 7 Apr 2024 13:22:22 +0200 Subject: [PATCH] fix: unused declarations --- .../src/MessageProcessor.ts | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/graphql-language-service-server/src/MessageProcessor.ts b/packages/graphql-language-service-server/src/MessageProcessor.ts index 7a21595b86b..17ad4ce89a2 100644 --- a/packages/graphql-language-service-server/src/MessageProcessor.ts +++ b/packages/graphql-language-service-server/src/MessageProcessor.ts @@ -1061,7 +1061,7 @@ export class MessageProcessor { } private async _cacheSchemaFilesForProject(project: GraphQLProjectConfig) { - const config = project?.extensions?.languageService; + // const config = project?.extensions?.languageService; /** * By default, we look for schema definitions in SDL files * @@ -1082,16 +1082,16 @@ export class MessageProcessor { // only local schema lookups if all of the schema entries are local files const sdlOnly = isProjectSDLOnly(unwrappedSchema); - const uri = this._getTmpProjectPath( - project, - true, - 'generated-schema.graphql', - ); - const fsPath = this._getTmpProjectPath( - project, - false, - 'generated-schema.graphql', - ); + // const uri = this._getTmpProjectPath( + // project, + // true, + // 'generated-schema.graphql', + // ); + // const fsPath = this._getTmpProjectPath( + // project, + // false, + // 'generated-schema.graphql', + // ); // invalidate the cache for the generated schema file // whether or not the user will continue using this feature // because sdlOnly needs this file to be removed as well if the user is switching schemas