yaml completion: add a space between ':' and value#245
yaml completion: add a space between ':' and value#245JPinkney merged 4 commits intoredhat-developer:masterfrom
Conversation
|
@JPinkney
|
|
@fbaligand The PR looks good to me! Do you mind writing a couple small tests so that we can make sure this issue doesn't happen again |
|
Ok to add a test for default value. |
|
Any of autocompletion ones should work. The only difference between them is the schemas that they use. If none of them can be used (if they don't provide a schema that allows you to call the correct sections of the code) you can do what autoCompletion5 did and manually create a schema in the fixtures folder and just create autoCompletion6.ts. The whole testing structure of those files needs to be revamped so I'd be ok to just add another file if needed |
|
Hi, Well, I'm quite bothered and need help for my unit test... I expect to have only one result item, that is 'directory' entry with So can you tell me what to do so that my test works? Thanks in advance. I can assure you that I spent some time to try to make this test work. |
|
I think what you can do for now is: and the tests will start working. It looks like during the completion request everything gets sent back to the client and its not until the completion resolve request that it narrows down to directory |
|
Hi @JPinkney, Thanks a lot for your help! Tell me if there is something else to add/change. |
|
Great! |
Fix the missing space between ':' and value in YAML completion, especially for default values, but not only.
Fix issue redhat-developer/vscode-yaml#281