graphiql icon indicating copy to clipboard operation
graphiql copied to clipboard

LSP Server: No Errors on mismatched file

Open acao opened this issue 3 years ago • 1 comments

there was an error loading the project config for this file e: File doesn't match any project

This error should be trapped and hidden on save/change. It is irrelevant. If a file doesn't contain any contents[], the LSP should just no-op

acao avatar Jun 13 '22 09:06 acao

Yes, it should. What is the status of this @acao please?

Currently I get logged this:

there was an error loading the project config for this file xTt: File '...\DiningOffer.tsx' doesn't match any project

My graphql-config is configured to ignore all ts(x) files, since my only GQL is in GQL files.

schema: 'src/core/graphql/schema/generated.graphql.schema.json'
documents:
  - src/modules/**/*.gql
exclude:
  - "**/*.{ts,tsx}"

vitexikora avatar Apr 15 '25 13:04 vitexikora