Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Create code completion plugin for the GraphQL #13

Open
wtrocki opened this issue May 28, 2020 · 3 comments
Open

Create code completion plugin for the GraphQL #13

wtrocki opened this issue May 28, 2020 · 3 comments

Comments

@wtrocki
Copy link
Contributor

wtrocki commented May 28, 2020

Adapt sample
https://github.com/microsoft/vscode-extension-samples/tree/master/completions-sample

Depends on aerogear/graphback#1323

@wtrocki
Copy link
Contributor Author

wtrocki commented May 28, 2020

@machi1990 I think you have mentioned that. Since we kinda reaching the stable state our annotations would not change that often. So it will make sense to have some helper to build them.

@machi1990
Copy link
Contributor

@machi1990 I think you have mentioned that. Since we kinda reaching the stable state our annotations would not change that often. So it will make sense to have some helper to build them.

Yeap. Good starting point. We could do more than completion e.g warning for some usage / combinations that are not supported, preview what would the schema be etc.

I remember you mentioned that you had a POC somewhere, could be good to link it here if it is public 👍

@wtrocki
Copy link
Contributor Author

wtrocki commented May 28, 2020

My POC used completions sample linked above. I just swapped text they used above to @db. It is not worth to share it anywhere, but I tried that and once we have list of the annotations we can do that easily.

Problem is that we will not be able to do context based ones (on the field etc.) as this is more work. So the way I see it is that we will just give you list of the annotations once you type """ @

@craicoverflow craicoverflow transferred this issue from aerogear/graphback Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants