graphql / vscode-graphql

MIGRATED: VSCode GraphQL extension (autocompletion, go-to definition, syntax highlighting)
https://marketplace.visualstudio.com/items?itemName=Prisma.vscode-graphql
MIT License
555 stars 71 forks source link

Support VSCode's indentation setting #200

Closed JVimes closed 4 years ago

JVimes commented 4 years ago

Actual Behavior

With the extension installed, the "Format Document" command indents with tabs even when VSCode is configured to use spaces.

Expected Behavior

The "Format Document" command follows the VSCode setting on tabs vs spaces, and number of spaces:

image

Steps to Reproduce the Problem Or Description

  1. Open a document in GraphQL language mode
  2. Run the "Format Document" command.

Specifications

acao commented 4 years ago

thanks for reporting! this is a much less than ideal bug.

so, this extension does not implement code formatting. so you might have better luck over at the prettier-vscode repository. it could be an issue in their implementation, or an issue with the actual @prettier/parser-graphql or whaever it's called. We use that in our official monaco mode, but not in the language server or in this extension. hope this helps!

JVimes commented 4 years ago

Oh, thank you. I'll report to prettier-vscode. Edit: Reported here.