Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDL field type autocomplete is broken #2422

Open
acao opened this issue May 22, 2022 · 1 comment
Open

SDL field type autocomplete is broken #2422

acao opened this issue May 22, 2022 · 1 comment

Comments

@acao
Copy link
Member

acao commented May 22, 2022

For some reason, the SDL field type definitions when defining a type or interface are way off. You only see scalars and enums, and occassionally... input types? but no types at all... seeing this in both monaco and vscode so I'll mark this as a regression in the language service

@jake-ruth-qm
Copy link

jake-ruth-qm commented Nov 15, 2022

Any update on this? I seem to get this when I am switching workspaces since I have multiple set up in a monorepo:

My graphql.config.js looks like this

module.exports = {
    projects: {
      "project1": {
        schema: ['apps/project1/src/graphql/schema/**.graphql'],
        documents: ['apps/project1/src/graphql/schema/*.{graphql,js,ts,jsx,tsx}'],
      },
       "project2": {
        schema: ['apps/project2/src/graphql/schema/**.graphql'],
        documents: ['apps/project12/src/graphql/schema/*.{graphql,js,ts,jsx,tsx}'],
      },
    },
  };

When I reload the VS code window and stay in one workspace it works as expected. But switching between these two causes the issue above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants