Use correct token position for validation
This commit is contained in:
@@ -55,7 +55,7 @@ describe("expression validation", () => {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it.failing("needs.<job_id>", async () => {
|
it("needs.<job_id>", async () => {
|
||||||
const input = `
|
const input = `
|
||||||
on: push
|
on: push
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -191,8 +191,8 @@ function getProviderContext(
|
|||||||
): WorkflowContext {
|
): WorkflowContext {
|
||||||
const {parent, path} = findToken(
|
const {parent, path} = findToken(
|
||||||
{
|
{
|
||||||
line: token.range!.start[0],
|
line: token.range!.start[0] - 1,
|
||||||
character: token.range!.start[1]
|
character: token.range!.start[1] - 1
|
||||||
},
|
},
|
||||||
root
|
root
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user