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.

avoid altering the file when there are ts errors (#107)

authored by

Jovi De Croock and committed by
GitHub
35589647 71fcdc9f

+7 -4
+5
.changeset/popular-clocks-count.md
··· 1 + --- 2 + '@0no-co/graphqlsp': patch 3 + --- 4 + 5 + Correctly bail when file has typescript errors
+2 -4
packages/graphqlsp/src/diagnostics.ts
··· 328 328 scalars, 329 329 baseTypesPath 330 330 ).then(({ success }) => { 331 - if (!success) return undefined; 331 + if (!success || hasTSErrors) return; 332 332 333 333 source = getSource(info, filename); 334 - if (!source) return undefined; 335 - 336 - if (isFileDirty(filename, source) && !hasTSErrors) { 334 + if (!source || isFileDirty(filename, source)) { 337 335 return; 338 336 } 339 337