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 e8654b6
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 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

0 comments on commit e8654b6

Please sign in to comment.