Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.

remove unused code

Changed files
-4
src
-4
src/getSchema.ts
···
fs.watchFile(resolvedPath, () => {
const contents = fs.readFileSync(resolvedPath, 'utf-8');
-
const parsedSchema = isJson
-
? buildClientSchema(JSON.parse(contents))
-
: buildSchema(contents);
ref.current = isJson
? buildClientSchema(JSON.parse(contents))
: buildSchema(contents);
-
return ref;
});
ref.current = isJson