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

fix: Ignore edits/creations for non file documents #28

Merged
merged 2 commits into from
Oct 7, 2021

Conversation

jgzuke
Copy link
Contributor

@jgzuke jgzuke commented Oct 6, 2021

This ignores document edits/creations that are coming from non file sources (eg merge view documents).

Previously if you opened the diff viewer (and possibly other ephemeral documents) the extension would see multiple definitions with the same name and crash.

Adapted from: apollographql/apollo-tooling#1894
Fixes: apollographql/apollo-tooling#1789, apollographql/apollo-tooling#1875, part of #18

@jgzuke jgzuke requested a review from cy October 6, 2021 01:45
Copy link
Contributor

@cy cy left a comment

Choose a reason for hiding this comment

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

✨ works

@jgzuke jgzuke force-pushed the jgzuke/fix/fix-reading-non-file-documents branch from cc6c69f to 27bde99 Compare October 7, 2021 22:31
@jgzuke jgzuke merged commit 28f25d4 into main Oct 7, 2021
@jgzuke jgzuke deleted the jgzuke/fix/fix-reading-non-file-documents branch October 7, 2021 22:33
@github-actions github-actions bot mentioned this pull request Oct 16, 2023
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.

Apollo GraphQL vscode extension will panic when view git diff
2 participants