-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Feature Request] Multiple entry zmodels in VS Code extension #1532
Comments
I just hit this as well and couldn't figure out why my schemas were now throwing errors. We use a mono repo, and I added another schema to a package we are building for a Zenstack plugin as an artifact for testing. Thanks for finding this. It was causing me some undue stress trying to determine why I was getting this error. At least now I know why and that it's just VSCode, but it would be good to resolve this issue as, like me, others may hit this error and not realize the root cause. |
@ymc9 I might look into this, as it's becoming more of a nuisance. Do you have any suggestions or preferences for correcting this before I start? I'd prefer not to go down the wrong path at the start. |
Hi @jasonmacdonald , thanks for offering to fix it! Since it's only for IDE we probably should configure it inside vscode settings. Let me check that part of code and share more thoughts back here soon. |
Hey @jasonmacdonald , thanks for the wait. I checked the code and here're my thoughts:
Btw, the language server code is bundled during build, which can make debugging a big hard. I've made a draft PR here to show how you can turn off the bundling and directly use normal build output. With this you should be able to use the VSCode launch configurations to start the extension host and attach to the language server. Please let me know if you run into any hurdle! |
This is still on my list, but I needed to switch focus last week due to unforeseen circumstances. I hope to get back to looking at this soon. |
Sure. Please take your time! I'm wrapping up v2.8 release but we can always release a patch whenever you have time to work on the PR. |
Is your feature request related to a problem? Please describe.
Currently using a structure with multiple entry zmodel schemas in different directories with their own
User
models or models with@@auth
flags only respects one of the auth models in the VS Code extension.Describe the solution you'd like
As @jiashengguo pointed out, a configuration setting could be introduced to support multiple schemas:
The text was updated successfully, but these errors were encountered: