Skip to content

[vscode] Use tagName from config to extract documents.#769

Merged
jbaxleyiii merged 2 commits intoapollographql:masterfrom
alloy:vscode-apollo-use-tagName
Nov 30, 2018
Merged

[vscode] Use tagName from config to extract documents.#769
jbaxleyiii merged 2 commits intoapollographql:masterfrom
alloy:vscode-apollo-use-tagName

Conversation

@alloy
Copy link
Copy Markdown
Contributor

@alloy alloy commented Nov 30, 2018

Now other tags (such as Relay’s graphql tag) will actually be recognized with a apollo.config.js file like the following:

module.exports = {
  client: {
    service: {
      name: "local",
      localSchemaFile: "./data/schema.graphql",
    },
    includes: ["src/**/*.{ts,tsx,graphql}"],
    excludes: ["**/node_modules", "**/__tests__"],
    tagName: "graphql",
  }
}

@jbaxleyiii
Copy link
Copy Markdown
Contributor

@alloy 👋 thanks for doing this! Does this mean the language server / extension will support Relay projects now? If so that would be really really awesome!

@jbaxleyiii jbaxleyiii merged commit c4ccd53 into apollographql:master Nov 30, 2018
@alloy
Copy link
Copy Markdown
Contributor Author

alloy commented Nov 30, 2018

@jbaxleyiii Yup, it does, that’s what we use 👍 Navigating with the extension is feeling pretty sweet thus far!

Btw, can you offer any insight into how long it would take for this to make it into a published release?

@jbaxleyiii
Copy link
Copy Markdown
Contributor

@alloy that's awesome! Release should be out today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants