-
Notifications
You must be signed in to change notification settings - Fork 223
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
Add status bar item for JSON schema selection #643
Add status bar item for JSON schema selection #643
Conversation
Signed-off-by: Yevhen Vydolob <[email protected]>
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.
The build seems to fail as well.
Signed-off-by: Yevhen Vydolob <[email protected]>
Co-authored-by: Josh Pinkney <[email protected]>
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.
I suppose this should be tested together with redhat-developer/yaml-language-server#556. However I have not been able to compile the project. When I tried the instructions on CONTRIBUTING.md compilation fails. When I try to do yarn link
compilation fails. At the moment, I can not test this change.
@gorkem Could you share errors which you have? I try several times and all compilation pass for me. Other problem with this PR that tests on CI is failing for some reasons, locally they pass. Going to investigate that. |
Signed-off-by: Yevhen Vydolob <[email protected]>
@gorkem Now flow with |
…chema-status-bar-item
Signed-off-by: Yevhen Vydolob <[email protected]>
Signed-off-by: Yevhen Vydolob <[email protected]>
What does this PR do?
Add new status bar item in VSCode status bar. This status bar shows current schema used and allow to select/switch schema with UI (quick pick box). It also indicate with error background if yaml-ls uses more than one schema for file.
Demo:
Screen.Recording.2021-11-16.at.14.14.43.mov
Depends on redhat-developer/yaml-language-server#556
What issues does this PR fix or reference?
Resolve: #565
Is it tested? How?
With test