-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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] multi-project config with file schemas is not working #3153
Comments
Hey @scamden, can you confirm this has been fixed (cc @acao)? I can still see this issue even when running the recently released version 0.8.13 of the GraphQL: Language Feature Support extension. Should that version include your fix? Thanks! 🙇 |
Thanks for jumping in @acao! I came across this message when I was still on 0.8.7. At the time, I was experiencing what I believe is the same issue described above. My understanding was that @scamden's fix would be included in version 0.8.9 as mentioned here. Due to the unrelated publishing issue, version 0.8.9 was never available on the VSCode Marketplace, so there is no way for me to try that particular version and see if everything was working as expected at that point. Before doing anything else, I just wanted to double check with @scamden if the issue he described and fixed appears to be back for him too with the latest version. 🙇 |
@jacprada perhaps you can share your config as well in case there are deltas? the more the merrier for adding more test cases |
Hey @acao, are you interested in the config file or is there more you would like to know? I came across this open issue, which matches our simple use case and behaviour. Do you feel like the fix mentioned above should have addressed that particular issue too? |
ok, so the delta is remote schema vs local file schema. that would explain why this is working but that is not. let's move the discussion to #2293 then |
Current Behavior
I have two projects configured in my rc as indicated on the vscode extension readme. Whichever project I load a file from first gets cached and works (ish there are issues with line numbers and the
gql
tag but that's for another issue). But the files from the other project will not function.Based on my loose naive reading of the code it seems like
getFragmentDefinitions
insideGraphQLCache.ts
caches according toprojectConfig.dirpath
which would have to be the same for both projects. I forked and tried adding the project name to the cache key and it seemed to solve but I have no idea if that could cause other issues.Here's my config
Desired Behavior
Two projects in the same config both have go to definition working.
PRs welcome!
If you find a way to solve this problem by modifying the code in either the source or the distributed code, we are more than happy to accept enhancement requests as PRs!
The text was updated successfully, but these errors were encountered: