Fix resource type completion for JSON#453
Fix resource type completion for JSON#453Ben-Wormald wants to merge 2 commits intoaws-cloudformation:mainfrom
Conversation
|
Hello, thank you for the PR! We will review this soon |
fix replacement range being set too high keep keys when completing values e.g. resource types simplify JSON formatting function for future improvements
ecde3f3 to
6b9a7aa
Compare
| : undefined; | ||
| let type: string; | ||
|
|
||
| if (section === String(TopLevelSection.Description)) { |
There was a problem hiding this comment.
Do we need to add AWSTemplateFormatVersion here?
There was a problem hiding this comment.
I didn't include it here originally as there's a snippet completion which completes the whole line with "AWSTemplateFormatVersion": "2010-09-09"
However it looks like both that snippet and an object placeholder snippet are suggested, I can take a look at that
|
Seems like the build is failing, I think this change potentially introduces some regressions which may or may not have been caught by the removed test(s)
Would love to see some more unit tests around these edge cases |
Issue #, if available: #450
Description of changes:
There is still some behaviour for JSON completions that isn't ideal but hopefully this is a first steo to improving it, cheers
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.