Skip to content

Commit

Permalink
fix: unused declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Apr 7, 2024
1 parent 278c6ed commit 76c0d91
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions packages/graphql-language-service-server/src/MessageProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -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
Expand Down Expand Up @@ -1163,7 +1163,6 @@ export class MessageProcessor {
}
}
} catch (err) {
console.log(err);
this._logger.error(String(err));
}
}
Expand Down

0 comments on commit 76c0d91

Please sign in to comment.