File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/components/YamlEditor Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export default function YamlEditor() {
40
40
setValue ( initialValue ) ;
41
41
validateAndSetAnnotations ( initialValue ) ;
42
42
} , [ ] ) ;
43
+
43
44
function validateAndSetAnnotations ( yaml ) {
44
45
try {
45
46
const doc = jsYaml . load ( yaml , { strict : true } ) ;
@@ -86,6 +87,7 @@ export default function YamlEditor() {
86
87
] ) ;
87
88
}
88
89
}
90
+
89
91
function getLineNumber ( yaml , instancePath ) {
90
92
const lines = yaml . split ( "\n" ) ;
91
93
const pathParts = instancePath . split ( "/" ) . filter ( Boolean ) ;
@@ -128,6 +130,7 @@ export default function YamlEditor() {
128
130
129
131
return lineNumber ;
130
132
}
133
+
131
134
function onChange ( newValue ) {
132
135
setValue ( newValue ) ;
133
136
validateAndSetAnnotations ( newValue ) ;
You can’t perform that action at this time.
0 commit comments