-
Notifications
You must be signed in to change notification settings - Fork 470
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
VSCode: Schema tag switching #632
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@trevor-scheer a couple questions!
@trevor-scheer one thing else it would probably be better for this to be a command palate command instead of a click event on the status bar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After thinking about this, I do think we should make it a command palate vs click interaction
3d340c2
to
6920ea2
Compare
@jbaxleyiii command palette change: 6920ea2 |
Enable developing against different schema tags by allowing the user to choose a tag from a dropdown.
… combine requests for gathering engine data.
6920ea2
to
91fbed1
Compare
this._onSchemaTags && this._onSchemaTags(this.schemaTags); | ||
}) | ||
.catch(error => { | ||
console.error(error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this an error that should be send to the loading handler? Otherwise I think the the indicator would get stuck.
It appears that the original necessity for `tsc-watch` was introduced through new usage within `npm-scripts` commands in #632. Since that usage is no longer present (at least partially removed via 5f287d9), this dependency should no longer be necessary either. This is relatively urgent since `tsc-watch` includes the `event-stream` npm package as a transitive dependency and that package is demonstrably vulnerable: Ref: dominictarr/event-stream#116 cc @martijnwalraven @jbaxleyiii @trevor-scheer @hwillson
This PR:
--tag
flag.For context:
Schemas can be "branched" in a similar way that one might make a branch in a git repo. This concept allows developers to publish different "branches" (tags) of a schema to engine. Publishing a new tag to engine makes the new introspection available to a client, in this case, VSCode.
The result here is that an extension user can switch tags on the fly and expect all the benefits that an introspection provides: autocomplete, syntax errors, and other relevant information specific to that tag.