-
Notifications
You must be signed in to change notification settings - Fork 45
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
Doesn't work with schema path outside project root #33
Comments
This plugin was designed with the expectation that the graphql files would be included with the project and checked into source control - you'll also need to put the |
I have a project where both the client and the server (multiple different servers in fact) are in the same git repository, and share the same graphql schema. So the directory structure goes something like
In VSCode, I only open the |
Got it. |
So, I looked into the related gql project internals, and it uses minimatch for matching your paths. Minimatch doesn't support specifying Update: also, it seems like watchman too doesn't like '..' in watch-path, which causes it to get stuck after establishing watch on the path with dots. Investigating... |
I wonder if it's even worth fixing with the dependencies being how they are... Maybe waiting for fixes in those would be cleaner. |
I've figured out how to fix it on my side, not sure if watchman supports it though... The docs are a little lacking - I'll dig there some more. Just a quick question @peterholak, your |
Just one |
I think this feature might be possible after this is resolved. |
- adds support for multi-root workspaces. Closes #33 - interfaces with @playlyfe/gql v3. Closes #83 - can auto-download gql library if not found. Addresses #16 other changes: - update language server to v4. - add prettier and format extension code. BREAKING_CHANGES: the extension options have changed. You'll need to go into your settings page, and configure these options: * graphqlForVSCode.autoDownloadGQL: auto download @playlyfe/gql if not * graphqlForVSCode.gqlPath: An absolute path to @playlyfe/gql module, if not auto-downloaded. If the library is located at the path `${workspaceRoot}/src/ui/node_modules/@playlyfe/gql`, you need to set the gqlPath as `${workspaceRoot}/src/ui`. * graphqlForVSCode.configDir: An absolute path to directory containing the `.gqlConfig` file. You can use `${workspaceRoot}` to specify the root. * graphqlForVSCode.watchman: use fb-watchman to watch files _if available_
- adds support for multi-root workspaces. Closes #33 - interfaces with @playlyfe/gql v3. Closes #83 - can auto-download gql library if not found. Addresses #16 other changes: - update language server to v4. - add prettier and format extension code. BREAKING_CHANGES: the extension options have changed. You'll need to go into your settings page, and configure these options: * graphqlForVSCode.autoDownloadGQL: auto download @playlyfe/gql if not * graphqlForVSCode.gqlPath: An absolute path to @playlyfe/gql module, if not auto-downloaded. If the library is located at the path `${workspaceRoot}/src/ui/node_modules/@playlyfe/gql`, you need to set the gqlPath as `${workspaceRoot}/src/ui`. * graphqlForVSCode.configDir: An absolute path to directory containing the `.gqlConfig` file. You can use `${workspaceRoot}` to specify the root. * graphqlForVSCode.watchman: use fb-watchman to watch files _if available_
🎉 This issue has been resolved in version 1.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
doesn't work, while
works just fine.
Using it on Windows 10, not sure how to get any useful error message (I just see an error icon in VSCode and the plugin features don't work).
The text was updated successfully, but these errors were encountered: