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: a few major bugs with SDL and remote schema in the language server #2055

Merged
merged 2 commits into from
Nov 25, 2021

Conversation

acao
Copy link
Member

@acao acao commented Nov 25, 2021

this fixes the URI scheme related bugs and make sure config works
sdl first dev experience should work again

fileURLToPath had been introduced by a contributor and I didnt test properly, it broke sdl file loading!

i only tested with remote schemas before releasing my bad!

definitions, autocomplete, diagnostics, etc should work again
also hides the more verbose logging output for now
still the cache miss error will get that next

This should fix:
#2021 #2018 #1672 #1977

and many others issues vscode-graphql repository

@changeset-bot
Copy link

changeset-bot bot commented Nov 25, 2021

🦋 Changeset detected

Latest commit: 746f8de

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

This PR includes changesets to release 2 packages
Name Type
graphql-language-service-cli Patch
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 25, 2021

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

graphql-language-service-cli@3.2.5-canary-4939a666.0
graphql-language-service-server@2.7.5-canary-4939a666.0

@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2021

@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2021

@github-actions
Copy link
Contributor

github-actions bot commented Nov 25, 2021

@github-actions github-actions bot temporarily deployed to graphiql-webpack-preview November 25, 2021 18:50 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-cdn-preview November 25, 2021 18:50 Inactive
@github-actions github-actions bot temporarily deployed to monaco-graphql-webpack-preview November 25, 2021 18:52 Inactive
this fixes the URI scheme related bugs and make sure config works
sdl first should work again
`fileURLToPath` had been introduced by a contributor and it broke sdl
first dev experience. i only tested with remote schemas
before releasing my bad!
definitions, autocomplete, diagnostics, etc should work again
also hides the more verbose logging output for now
still the cache miss error will get that next
@codecov
Copy link

codecov bot commented Nov 25, 2021

Codecov Report

Merging #2055 (746f8de) into main (2d91916) will decrease coverage by 2.36%.
The diff coverage is 63.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2055      +/-   ##
==========================================
- 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 39 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 2e349a9...746f8de. Read the comment docs.

@github-actions github-actions bot temporarily deployed to graphiql-webpack-preview November 25, 2021 18:56 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-cdn-preview November 25, 2021 18:57 Inactive
@github-actions github-actions bot temporarily deployed to monaco-graphql-webpack-preview November 25, 2021 18:57 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-cdn-preview November 25, 2021 23:07 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-webpack-preview November 25, 2021 23:07 Inactive
@github-actions github-actions bot temporarily deployed to monaco-graphql-webpack-preview November 25, 2021 23:07 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-webpack-preview November 25, 2021 23:36 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-cdn-preview November 25, 2021 23:37 Inactive
@github-actions github-actions bot temporarily deployed to monaco-graphql-webpack-preview November 25, 2021 23:37 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-webpack-preview November 25, 2021 23:43 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-cdn-preview November 25, 2021 23:44 Inactive
@github-actions github-actions bot temporarily deployed to monaco-graphql-webpack-preview November 25, 2021 23:44 Inactive
@acao acao changed the title fix: a few major bugs with SDL in the language server fix: a few major bugs with SDL and remote schema in the language server Nov 25, 2021
@github-actions github-actions bot temporarily deployed to graphiql-webpack-preview November 25, 2021 23:50 Inactive
@github-actions github-actions bot temporarily deployed to graphiql-cdn-preview November 25, 2021 23:51 Inactive
@github-actions github-actions bot temporarily deployed to monaco-graphql-webpack-preview November 25, 2021 23:52 Inactive
@acao acao merged commit f82bd7a into main Nov 25, 2021
@acao acao deleted the fix-lsp-uri branch November 25, 2021 23:52
@github-actions github-actions bot mentioned this pull request Nov 25, 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.

1 participant