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

Can this extension become a formatter? #187

Open
frederikhors opened this issue Oct 8, 2019 · 4 comments
Open

Can this extension become a formatter? #187

frederikhors opened this issue Oct 8, 2019 · 4 comments
Assignees

Comments

@frederikhors
Copy link

Is there a way to format my schema.graphql files in Visual Studio Code?

If I install this extension and reload Visual Studio Code and try to format my file it every time complains with:

There is no formatter for 'graphql'-files installed.

Is there a formatter?

Can this extension become a formatter?

@kumarharsh kumarharsh self-assigned this Oct 9, 2019
@kumarharsh
Copy link
Owner

Good question. Let me research a little bit on this topic.

@frederikhors
Copy link
Author

@kumarharsh any news on this? It would be amazing! Today there is nothing easy to accomplish this in vscode.

@kumarharsh
Copy link
Owner

Haven't had time to look into this extension lately. I think Prettier should have something for this, but still have to research. If you do find a solution, I'd be open to a PR too.

@frederikhors
Copy link
Author

Prettier is too heavy and intereferes with other plugins for other projects types (JS).

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