Skip to content

Add README for the VS Code extension#521

Merged
shadaj merged 10 commits intomasterfrom
vscode-extension-readme
Aug 6, 2018
Merged

Add README for the VS Code extension#521
shadaj merged 10 commits intomasterfrom
vscode-extension-readme

Conversation

@shadaj
Copy link
Copy Markdown
Contributor

@shadaj shadaj commented Jul 31, 2018

No description provided.

@shadaj shadaj self-assigned this Jul 31, 2018
@ghost ghost added the 📝 documentation label Jul 31, 2018
@shadaj shadaj force-pushed the vscode-extension-readme branch from ebcfeca to 14153df Compare July 31, 2018 18:43
Copy link
Copy Markdown

@peggyrayzis peggyrayzis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good start, thanks Shadaj! Before we officially launch, I think there are a lot of unanswered questions regarding the workflow for configuring your schema to work with the extension. What if the developer isn't running their schema locally? Do they point to a deployed version? What about Engine?

@stubailo also has opinions on what this should look like. Let's all work together to come up with a recommended workflow that covers all of these scenarios.


Open up VS Code and search for the extension "Apollo".

## How to get it set up?
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about uploading your schema to Engine? What if you're not running your GraphQL server locally?


## How to get it?

Open up VS Code and search for the extension "Apollo".
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this extension conflict with any other GraphQL extensions you have installed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, since both register a GraphQL syntax. Should I add a line to warn users about installing it alongside other extensions?

![Running a query with variables](images/query-with-vars.gif)
![Viewing Engine statistics](images/engine-stats.png)

## Features
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this extension work with non-Apollo GraphQL servers?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! Is there somewhere we can make this more clear?

Comment thread packages/apollo-vscode/README.md Outdated

The extension enables query execution when an `endpoint` is specified for the schema you are targeting. When you hit `Run query/mutations/subscription`, the extension will open a menu for you to input variables if there are any defined or directly run the query otherwise.

Queries and mutations are executed with the same [Apollo Link HTTP](https://www.apollographql.com/docs/link/links/http.html) configured to run queries against the specified endpoint. Subscriptions are handled with [Apollo Link WS](https://www.apollographql.com/docs/link/links/ws.html) configured to run against the `subscriptions` key in your schema or your endpoint with `http` replaced by `ws` if the key is not defined.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of mentioning Apollo Link HTTP & WS, we should probably just mention that it uses the same network interface you use with Apollo Client.

Comment thread packages/apollo-vscode/README.md Outdated

If you're having trouble with the extension not launching or not detecting your configuration files, you can check the language server logs.

1. Open the VS Code output tab from the bottom of your editor
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the VSCode output tab? This should be more clear.

@shadaj
Copy link
Copy Markdown
Contributor Author

shadaj commented Aug 6, 2018

Merging what we have so far since we depend on the images in this PR for the marketplace description.

@shadaj shadaj merged commit ef297e6 into master Aug 6, 2018
@shadaj shadaj deleted the vscode-extension-readme branch August 7, 2018 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants