graphql/graphiql

Field coloring varies based on newlines

开放

#2,354 创建于 2019年5月6日

 (8 条评论) (3 个反应) (0 位负责人)TypeScript (1,785 个派生)batch import
buggood first issuegrammarvscode-graphqlvscode-graphql-syntax

仓库指标

星标
 (15,473 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Actual Behavior

Field coloring varies depending whether the opening brace or directive is on the same line as the type definition. Especially in more complex cases (the Bar example below) it may be preferable to have directives on their own lines.

See field: String below:

Expected Behavior

Colors don't change based on locations.

Steps to Reproduce the Problem Or Description

Example code from screenshot:

type Foo1 {
  field: String
}

type Foo2
{
  field: String
}

type Bar1 @auth(rules: [
  { allow: groups, groups: ["Admin"] }
  { allow: groups, groups: ["Everyone"], operations: [read] }
]) {
  field: String
}

type Bar2
@auth(rules: [
  { allow: groups, groups: ["Admin"] }
  { allow: groups, groups: ["Everyone"], operations: [read] }
]) {
  field: String
}

Specifications

  • GraphQL for VSCode Extension Version: 0.1.7
  • VSCode Version: 1.32.3
  • OS Name: macOS
  • OS Version: Mojave

贡献者指南