Skip to content

Commit d9a7db9

Browse files
ShadiestGoatdatho7561
authored andcommitted
apply patch
1 parent 9bda8c0 commit d9a7db9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/languageservice/services/yamlCompletion.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,8 +516,7 @@ export class YamlCompletion {
516516
const ignoreScalars =
517517
textBuffer.getLineContent(overwriteRange.start.line).trim().length === 0 &&
518518
originalNode &&
519-
isScalar(originalNode) &&
520-
originalNode.value === null;
519+
((isScalar(originalNode) && originalNode.value === null) || isSeq(originalNode));
521520

522521
// completion for object keys
523522
if (node && isMap(node)) {
@@ -939,7 +938,7 @@ export class YamlCompletion {
939938
separatorAfter,
940939
collector,
941940
types,
942-
false,
941+
ignoreScalars,
943942
typeof s.schema.items === 'object' &&
944943
(s.schema.items.type === 'object' || isAnyOfAllOfOneOfType(s.schema.items))
945944
);

0 commit comments

Comments
 (0)