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(graphql): Prevent the graphql server from accidentally starting with a TypeSpec file #4639

Merged
merged 4 commits into from
Jan 27, 2025

Conversation

ncaq
Copy link
Contributor

@ncaq ncaq commented Dec 13, 2024

The extension determination was not accurate and reacted to `.tsp' files.
Created a unit test case to the function that performs the extension determination and modified the actual code.

ncaq added 2 commits December 13, 2024 18:24
Reproduce a situation where GraphQL is unintentionally reacting to a TypeSpec file (`.tsp`).
Do not mistakenly assume that `.tsp` is a file containing GraphQL.
@github-actions github-actions bot added the client One or more of lsp-mode language clients label Dec 13, 2024
@jcs090218
Copy link
Member

Oops, I merged #4686 before this PR. Can you check to see if that works? I would still like to merge the test file.

ncaq added 2 commits January 27, 2025 13:21
The following person's method was used for the lsp-graphql match method.

[lsp-graphql: fix regexp for ext check by suzuki · Pull Request emacs-lsp#4686 · emacs-lsp/lsp-mode](emacs-lsp#4686)

Since the final matching is done by regular expressions,
I thought it would be more consistent to use regular expressions rather than Lisp programs to make decisions as much as possible.
@ncaq
Copy link
Contributor Author

ncaq commented Jan 27, 2025

@jcs090218
I merged.

@github-actions github-actions bot removed the client One or more of lsp-mode language clients label Jan 27, 2025
@jcs090218 jcs090218 merged commit 137cdd1 into emacs-lsp:master Jan 27, 2025
10 of 13 checks passed
@jcs090218
Copy link
Member

Thank you!

@ncaq ncaq deleted the fix-graphql-extension-match branch January 27, 2025 04:46
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.

2 participants