-
Notifications
You must be signed in to change notification settings - Fork 48
Support directives hints for schema definitions #129
Conversation
Just noticed this: https://github.com/graphql/graphql-language-service/blob/master/packages/graphql-language-service-interface/src/getAutocompleteSuggestions.js. Should I transfer my changes there as well? |
@asiandrummer, I know you're working on |
@RomanGotsiy thanks for the contribution - your changes look awesome! I'm going to merge this - again thanks for the contribution! |
@asiandrummer awesome! Btw wanted to ask about
Right now I have added a few hacks to make it work somehow in my project but I'm really interested to have it natively in language services. Is it in the scope? Can I help with this? |
@RomanGotsiy I'd greatly appreciate the help! I think Within a couple days I should be able to: 1) merge your changes to |
I am working on a mock-server tool together with my college @IvanGoncharov. We leverage directives in IDL for configuring. For users to work easier with our tool we've set up a simple IDL editor. This PR adds support for autocompletion for directives which was the must for us. But types autocompletion does not work + for example non-existing types are not linted, etc. These problems are not limited to our tool. I believe this is a very common issue and I would love to help with this. Let me know when you are ready with merging/refactoring this repo. Maybe we could chat then to discuss those features and ways to implement them. |
@RomanGotsiy definitely! Language service features for schema IDL is very interesting and would be of a high value if we can have it. Just an intermediate idea - one way to achieve updating schema on the fly with added schema IDL is to pass the edited content for Let me open an issue and include you when I get the migration done ;) |
that't very similar to what I do :)
awesome! thank you! |
Add support for directives hints for schema definitions (schema shorthand notation)