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

GraphQLSP autocomplete does not work in .astro files #991

Open
1 task
thegatesdev opened this issue Feb 8, 2025 · 2 comments
Open
1 task

GraphQLSP autocomplete does not work in .astro files #991

thegatesdev opened this issue Feb 8, 2025 · 2 comments
Labels
needs triage Issue needs to be triaged

Comments

@thegatesdev
Copy link

thegatesdev commented Feb 8, 2025

Astro Info

Astro                    v5.2.5
Node                     v18.20.6
System                   Windows (x64)
Package Manager          bun
Output                   static
Adapter                  none
Integrations             @sentry/astro

Describe the Bug

The GraphQLSP typescript plugin provides useful autocomplete and hover info when building graphql queries.
However, it does not seem to work in any .astro files. This issue was raised earlier here: 0no-co/GraphQLSP#242 but from what I understand this should be the job of Astro to fix.

This is how it looks in a .astro file:
Image

This is how it looks in a .ts file:
Image

Link to Minimal Reproducible Example

https://idx.google.com/u/0/graphql-lsp-bug-3641049

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Feb 8, 2025
@thegatesdev
Copy link
Author

Make sure to use the workspace typescript version in the IDX example (it should ask in a popup).

@ematipico ematipico transferred this issue from withastro/astro Feb 8, 2025
@thegatesdev
Copy link
Author

Maybe related to this issue: With TypeScript files open, the editor action 'TypeScript: Restart TS Server' is available, but this is not the case in any Astro files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant