Merge branch 'main' into thyeggman/cache-workflow-results

This commit is contained in:
Jacob Wallraff
2023-03-06 15:22:28 -08:00
19 changed files with 229 additions and 91 deletions
+18
View File
@@ -338,6 +338,24 @@ jobs:
expect(result).toHaveLength(16);
});
it("complete from behind a colon will replace it", async () => {
const input = `
on: push
jobs:
one:
runs-on: ubuntu-latest
|:
- uses: actions/checkout@v2
`;
const result = await complete(...getPositionFromCursor(input));
expect(result).toHaveLength(16);
let textEdit = result[0].textEdit as TextEdit;
expect(textEdit.range).toEqual({
start: {line: 5, character: 4},
end: {line: 5, character: 5}
});
});
it("well known mapping keys have descriptions", async () => {
const input = `
o|