Skip to content

Add status bar item for JSON schema selection#643

Merged
evidolob merged 7 commits intoredhat-developer:mainfrom
evidolob:schema-status-bar-item
Dec 15, 2021
Merged

Add status bar item for JSON schema selection#643
evidolob merged 7 commits intoredhat-developer:mainfrom
evidolob:schema-status-bar-item

Conversation

@evidolob
Copy link
Copy Markdown
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

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@evidolob evidolob requested review from JPinkney and gorkem November 16, 2021 12:33
Comment thread src/schema-status-bar-item.ts Outdated
Copy link
Copy Markdown
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.

Comment thread src/schema-status-bar-item.ts Outdated
Comment thread src/schema-status-bar-item.ts Outdated
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@evidolob evidolob requested a review from gorkem November 17, 2021 09:48
Comment thread test/json-schema-selection.test.ts Outdated
Co-authored-by: Josh Pinkney <jpinkney@redhat.com>
Copy link
Copy Markdown
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
Copy Markdown
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.

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@evidolob
Copy link
Copy Markdown
Collaborator Author

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

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
@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