yaml-language-server
                                
                                 yaml-language-server copied to clipboard
                                
                                    yaml-language-server copied to clipboard
                            
                            
                            
                        feat: add diagnostic data with missing properties
What does this PR do?
When problem 'Property {0} is not allowed.' is found during diagnostic it will extend diagnostic.data by possible props that could be inside the object.
- diagnostic.data = Object.keys(schema.properties) subtract seenProperties
then it can be used inside CodeAction to suggest proper properties instead of the wrong one.
What issues does this PR fix or reference?
no ref
Is it tested? How?
added tests
Coverage increased (+0.03%) to 82.984% when pulling b58cb211678f861bfddbd0632ab6379d8b4c930d on jigx-com:feat/add-diagnostic-data-with-missing-properties into 47290fedd1ebfb8c71cfa8327e855f96a84644e2 on redhat-developer:main.
Are you also planning to contribute CodeAction changes?
Are you also planning to contribute
CodeActionchanges?
I didn't plan it (I needed some customized functionality in client, so I didn't need it in YLS), but I can add it (but not sure when).