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 = `
|
||||
on: push
|
||||
jobs:
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user