Skip to content
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

Merged
merged 7 commits into from
Dec 15, 2021

Conversation

evidolob
Copy link
Collaborator

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

Copy link
Collaborator

@gorkem gorkem left a 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.

src/schema-status-bar-item.ts Outdated Show resolved Hide resolved
src/schema-status-bar-item.ts Outdated Show resolved Hide resolved
Signed-off-by: Yevhen Vydolob <[email protected]>
@evidolob evidolob requested a review from gorkem November 17, 2021 09:48
test/json-schema-selection.test.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@gorkem gorkem left a 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.

@evidolob
Copy link
Collaborator Author

@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.

@evidolob
Copy link
Collaborator Author

@gorkem Now flow with yarn link should work, the problem was with replacement of process lib.

@evidolob evidolob merged commit c82041d into redhat-developer:main Dec 15, 2021
@evidolob evidolob deleted the schema-status-bar-item branch December 15, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hammerkit yaml schema picked up instead of Github actions
3 participants