Skip to content

Clear projectForFileCache when schema is reloaded#1447

Merged
JakeDawkins merged 1 commit intoapollographql:masterfrom
TurtleAI:clear-cache-on-reload-schema
Jul 28, 2019
Merged

Clear projectForFileCache when schema is reloaded#1447
JakeDawkins merged 1 commit intoapollographql:masterfrom
TurtleAI:clear-cache-on-reload-schema

Conversation

@venkatd
Copy link
Copy Markdown
Contributor

@venkatd venkatd commented Jul 28, 2019

Resolves #1446

When I stepped through the debugger I noticed that the cache wasn't getting properly cleared which resulted in outdated autocomplete results. Adding cache clearing toproject.reloadSchema appears to resolve the issue.

@venkatd
Copy link
Copy Markdown
Contributor Author

venkatd commented Jul 28, 2019

Can confirm that if I build the extension with npm run package-extension and install from vsix, it resolves my issue.

@JakeDawkins JakeDawkins merged commit f9c61ef into apollographql:master Jul 28, 2019
@JakeDawkins
Copy link
Copy Markdown
Contributor

Great catch! Thank you!

essaji pushed a commit to essaji/apollo-tooling that referenced this pull request Aug 25, 2019
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.

Reload schema command doesn't reflect added fields

2 participants