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

Configure Feed

Select the types of activity you want to include in your feed.

remove unused code

-4
-4
src/getSchema.ts
··· 13 13 14 14 fs.watchFile(resolvedPath, () => { 15 15 const contents = fs.readFileSync(resolvedPath, 'utf-8'); 16 - const parsedSchema = isJson 17 - ? buildClientSchema(JSON.parse(contents)) 18 - : buildSchema(contents); 19 16 ref.current = isJson 20 17 ? buildClientSchema(JSON.parse(contents)) 21 18 : buildSchema(contents); 22 - return ref; 23 19 }); 24 20 25 21 ref.current = isJson