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

LSP Server should parse more JS extensions #2060

Merged
merged 2 commits into from
Nov 26, 2021
Merged

Conversation

acao
Copy link
Member

@acao acao commented Nov 26, 2021

There are many more extensions people are using these days for javascript so it's time to honor all of them. This should fix #1955 when published to vscode-graphql, though graphql shouldn't be trying to parse those files anyways, so a bit more digging is in order

@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2021

🦋 Changeset detected

Latest commit: 2442543

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
graphql-language-service-server Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2021

The latest changes of this PR are available as canary in npm (based on the declared changesets):

@codecov
Copy link

codecov bot commented Nov 26, 2021

Codecov Report

Merging #2060 (2442543) into main (2d91916) will decrease coverage by 2.36%.
The diff coverage is 63.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2060      +/-   ##
==========================================
- Coverage   65.70%   63.34%   -2.37%     
==========================================
  Files          85       94       +9     
  Lines        5106     5442     +336     
  Branches     1631     1715      +84     
==========================================
+ Hits         3355     3447      +92     
- Misses       1747     1990     +243     
- Partials        4        5       +1     
Impacted Files Coverage Δ
packages/codemirror-graphql/src/hint.ts 94.73% <ø> (ø)
packages/codemirror-graphql/src/lint.ts 100.00% <ø> (ø)
packages/codemirror-graphql/src/results/mode.ts 47.05% <ø> (ø)
...kages/codemirror-graphql/src/utils/forEachState.ts 100.00% <ø> (ø)
...ckages/codemirror-graphql/src/utils/mode-indent.ts 0.00% <0.00%> (ø)
packages/codemirror-graphql/src/variables/hint.ts 89.70% <ø> (ø)
packages/codemirror-graphql/src/variables/mode.ts 79.48% <ø> (ø)
packages/graphiql/src/components/QueryEditor.tsx 63.96% <ø> (ø)
...graphiql/src/components/__tests__/ExampleSchema.ts 100.00% <ø> (ø)
packages/graphiql/src/utility/fillLeafs.ts 5.33% <ø> (ø)
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 33fe6e1...2442543. Read the comment docs.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2021

@github-actions github-actions bot temporarily deployed to graphiql-webpack-preview November 26, 2021 10:33 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2021

@github-actions github-actions bot temporarily deployed to graphiql-cdn-preview November 26, 2021 10:34 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2021

@github-actions github-actions bot temporarily deployed to monaco-graphql-webpack-preview November 26, 2021 10:34 Inactive
There are a bunch more extensions people are using these days for javascript so it's time to honor them. This *should* fix #1955 when published to `vscode-graphql`, though graphql shouldn't be trying to parse those files anyways, so a bit more digging is in order
@github-actions github-actions bot temporarily deployed to graphiql-webpack-preview November 26, 2021 10:48 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-cdn-preview November 26, 2021 10:48 Inactive
@github-actions github-actions bot temporarily deployed to monaco-graphql-webpack-preview November 26, 2021 10:49 Inactive
@acao acao changed the title Parse more JS extensions LSP Server should parse more JS extensions Nov 26, 2021
@acao acao merged commit 4286185 into main Nov 26, 2021
@acao acao deleted the handle-more-js-extensions branch November 26, 2021 10:52
@github-actions github-actions bot mentioned this pull request Nov 26, 2021
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.

Reports GraphQL syntax errors in cjs & mjs files
1 participant