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

Activate LSP for schema and schema extension files #4652

Conversation

tobias-tengler
Copy link
Contributor

This is in preparation for adding LSP support for schema and schema extension files.

@captbaritone
Copy link
Contributor

Awesome! I'm curious how/if you were able to verify these changes. This LSP stuff can be hard to test (especially when they require changes to the VSCode extension as well)

@tobias-tengler tobias-tengler force-pushed the activate-lsp-for-graphql-files branch from 9c8e9f5 to b49312f Compare March 15, 2024 21:24
@tobias-tengler
Copy link
Contributor Author

tobias-tengler commented Mar 15, 2024

Yes, I was able to verify it. I started the extension development host and opened my lsp playground repository, which is configured to point to the locally built relay binary. I then observed the extension displaying the Relay: ready message, when I opened the configured schema or a schema extension file.

Copy link
Contributor

@captbaritone captbaritone left a comment

Choose a reason for hiding this comment

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

Looks good! Just one qustion

compiler/crates/relay-lsp/src/server/lsp_state.rs Outdated Show resolved Hide resolved
@tobias-tengler
Copy link
Contributor Author

tobias-tengler commented Mar 15, 2024

@captbaritone Addressed :)

@facebook-github-bot
Copy link
Contributor

@captbaritone has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@captbaritone merged this pull request in 964e078.

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