(Replaced by !72764) Add the Yaml Creator Source Editor Extension
⚠ This MR has been replaced by !72764 (merged)
What does this MR do and why?
Note: This MR is based on the branch for !72517 (closed)
Source Editor Extension
This MR adds a Source Editor Extension that adds two methods to the Editor:
-
setYamlValueFromJson(value)
This function can be passed any JS Variable. The Editor's value will be set to a YAML dump of that value. This supports the
injection of comments (see below) -
highlight(path)
After having set up the value using
setYamlValueFromJson()
,highlight(path)
will add line highlighting to the lines identified by the path. The path is a string to any object property ofvalue
as interpreted by Lodash's pick function, e.g.foo.bar[0]
. These will also highlight related comments.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.