Use correct token position for validation

This commit is contained in:
Josh Gross
2022-12-01 15:10:18 -05:00
parent 2332a16ce7
commit 06ab9c4294
2 changed files with 3 additions and 3 deletions
@@ -55,7 +55,7 @@ describe("expression validation", () => {
]);
});
it.failing("needs.<job_id>", async () => {
it("needs.<job_id>", async () => {
const input = `
on: push
jobs:
+2 -2
View File
@@ -191,8 +191,8 @@ function getProviderContext(
): WorkflowContext {
const {parent, path} = findToken(
{
line: token.range!.start[0],
character: token.range!.start[1]
line: token.range!.start[0] - 1,
character: token.range!.start[1] - 1
},
root
);