Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f5d9a024d |
@@ -474,15 +474,3 @@ jobs:
|
||||
expect(result.filter(x => x.label === "concurrency").map(x => x.textEdit?.newText)).toEqual(["concurrency"]);
|
||||
});
|
||||
});
|
||||
|
||||
it("adds a new line and indentation for mapping keys", async () => {
|
||||
const input = "concurrency: |";
|
||||
|
||||
const result = await complete(...getPositionFromCursor(input));
|
||||
|
||||
expect(result.filter(x => x.label === "cancel-in-progress").map(x => x.textEdit?.newText)).toEqual([
|
||||
"\n cancel-in-progress: "
|
||||
]);
|
||||
expect(result.filter(x => x.label === "group").map(x => x.textEdit?.newText)).toEqual(["\n group: "]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -71,10 +71,6 @@ function mappingValues(
|
||||
// No special insertText in this case
|
||||
break;
|
||||
|
||||
case DefinitionType.String:
|
||||
case DefinitionType.Boolean:
|
||||
insertText = `\n${indentation}${key}: `;
|
||||
break;
|
||||
default:
|
||||
insertText = `${key}: `;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user