We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bda8c0 commit d9a7db9Copy full SHA for d9a7db9
src/languageservice/services/yamlCompletion.ts
@@ -516,8 +516,7 @@ export class YamlCompletion {
516
const ignoreScalars =
517
textBuffer.getLineContent(overwriteRange.start.line).trim().length === 0 &&
518
originalNode &&
519
- isScalar(originalNode) &&
520
- originalNode.value === null;
+ ((isScalar(originalNode) && originalNode.value === null) || isSeq(originalNode));
521
522
// completion for object keys
523
if (node && isMap(node)) {
@@ -939,7 +938,7 @@ export class YamlCompletion {
939
938
separatorAfter,
940
collector,
941
types,
942
- false,
+ ignoreScalars,
943
typeof s.schema.items === 'object' &&
944
(s.schema.items.type === 'object' || isAnyOfAllOfOneOfType(s.schema.items))
945
);
0 commit comments