-
Notifications
You must be signed in to change notification settings - Fork 241
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
fix/suggestion item title #659
fix/suggestion item title #659
Conversation
@@ -81,7 +81,8 @@ | |||
"build:libs": "yarn compile:umd && yarn compile:esm", | |||
"compile:umd": "tsc -p ./tsconfig.umd.json", | |||
"compile:esm": "tsc -p ./tsconfig.esm.json", | |||
"check-dependencies": "node ./scripts/check-dependencies.js" | |||
"check-dependencies": "node ./scripts/check-dependencies.js", | |||
"pull-remote": "git pull https://github.com/redhat-developer/yaml-language-server.git main" |
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.
this change shouldn't be there.
I can remove this if you don't want this in scrips...
but this command is useful to merge changes from your repo into forked one...
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 don’t think that we will use that script, but I'm OK to keep it
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.
It is better to remove. It will confuse me :)
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.
Thank you
What does this PR do?
This PR fix logic of the
schema.title
.I had a problem, that the previous
title
could be modified by title from parents. Soschema.title
could contain a title from its parent. And then I wasn't able to return the correct name of a suggestion item (display of the real title, name of the ref object, parent title).So this PR adds a new
closestTitle
prop, that should cover previous functionality.I went through all
schema.title
and tried to decide where to usetitle
orclosesTitle
. Results of the UT are ok, but I will be better to check this from your side.What issues does this PR fix or reference?
no ref
Is it tested? How?
Modified one UT that covers this change