Skip to content

Commit a7e86db

Browse files
Merge branch 'main' into fix/snippets-in-aditionalProperties
2 parents 95229f2 + 4b91dd3 commit a7e86db

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/languageservice/services/yamlCompletion.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ export class YamlCompletion {
12061206
insertText = `\${${insertIndex++}:0}`;
12071207
break;
12081208
case 'string':
1209-
insertText = `\${${insertIndex++}:""}`;
1209+
insertText = `\${${insertIndex++}}`;
12101210
break;
12111211
case 'object':
12121212
{

test/autoCompletion.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,7 @@ describe('Auto Completion Tests', () => {
10471047
const completion = parseSetup(content, content.lastIndexOf('Ba') + 2); // pos: 3+2
10481048
completion
10491049
.then(function (result) {
1050-
assert.strictEqual('fooBar:\n - ${1:""}', result.items[0].insertText);
1050+
assert.strictEqual('fooBar:\n - ${1}', result.items[0].insertText);
10511051
})
10521052
.then(done, done);
10531053
});

test/autoCompletionFix.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ objB:
482482

483483
expect(completion.items.length).equal(1);
484484
expect(completion.items[0]).to.be.deep.equal(
485-
createExpectedCompletion('objectWithArray', 'objectWithArray:\n - ${1:""}', 1, 4, 1, 4, 10, 2, {
485+
createExpectedCompletion('objectWithArray', 'objectWithArray:\n - ${1}', 1, 4, 1, 4, 10, 2, {
486486
documentation: '',
487487
})
488488
);

0 commit comments

Comments
 (0)