-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Autocomplete not working on Schema definition #2172
Comments
I am using schema first on the server with splitting of the schema. I'd like my team to be able to secure development by having autocomplete feature on server-side schema definition, but this does not seem to work. This message to bump the thread and ask if any fix are ongoing on this front. |
😢 |
Any news on this ? |
Terribly sorry this one slipped through the cracks last year. I still have ~900 notifications to go through I have moved this ticket to the repository for the language server. I haven't seen this issue with similar configurations yet, but I'm sure I or another maintainer will be able to reproduce it. It's been added as a high priority bug to the roadmap, given the response 😢 |
It appears from the screenshots that the autocomplete is briefly working properly for you after save. The blue icons are appearing, which are used to denote operation or type fields, as opposed to the emmet style completions that always show and have to be disabled in user settings. Of course it should also work before save, and after you begin typing a selection, so we will have to fix that! |
Actual Behavior
Autocomplete works fine on gql tags and query files in the project but it does not work on the schema definition file.
The outline is being detected as expected:

However, whenever I type a new field, autocomplete doesn't work:

In the example above, if I write Int and save my file, then it gets suggested the next time I type something:

But as soon as I'm writing the next field it stops working again:

Expected Behavior
Autocomplete should work with default and user defined types on schema definition.
Steps to Reproduce the Problem Or Description
1 - Create a new project with the following configuration file:
.graphqlrc.yml
2 - Create a schema.graphql file in the root folder:
schema.graphql
3 - Try to write a new field, autocomplete doesn't work
Specifications
Version: 1.52.1
Commit: ea3859d4ba2f3e577a159bc91e3074c5d85c0523
Date: 2020-12-16T16:30:02.420Z
Electron: 9.3.5
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Darwin x64 20.2.0
Logs Of TS Server || GraphQL Language Service
The text was updated successfully, but these errors were encountered: