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

feat: add extra data with solutionTitle to property completion #974

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

p-spacek
Copy link
Contributor

@p-spacek p-spacek commented May 28, 2024

What does this PR do?

add data property (with schema title) to property completion items
this extra info can be used later in the client

  • for example to differentiate two same properties

I tried to implement this inside the YLS, but the types don't correspond with vscode client,
the unfinished implementation is here: 54e817f
I can add this implementation into the YLS later, once the types will be solved

server types vs vscode types
image
image

example of usage:
image

What issues does this PR fix or reference?

Is it tested? How?

unit test

@coveralls
Copy link

coveralls commented May 28, 2024

Coverage Status

coverage: 84.179% (+0.005%) from 84.174%
when pulling c5188d6 on jigx-com:feat/add-extra-data-to-property-completion
into 7203630 on redhat-developer:main.

@p-spacek p-spacek changed the title fix: render examples as yaml on hover (#947) feat: add extra data with solutionTitle to property completion May 28, 2024
p-spacek added a commit to jigx-com/rh-yaml-language-server that referenced this pull request May 29, 2024
@p-spacek p-spacek force-pushed the feat/add-extra-data-to-property-completion branch from d77d482 to c5188d6 Compare May 29, 2024 12:46
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.

2 participants