Skip to content

Commit

Permalink
fix: when opening a vscode/workspace task, task position is not locat…
Browse files Browse the repository at this point in the history
…ed properly if no label property exists.
  • Loading branch information
spmeesseman committed Feb 7, 2021
1 parent c128706 commit 4870016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/taskTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ export class TaskTreeDataProvider implements TreeDataProvider<TreeItem>
{
if (typeof value === "string")
{
if (inTaskLabel === "label")
if (inTaskLabel === "label" || inTaskLabel === "script")
{
if (script.task.name === value)
{
Expand Down Expand Up @@ -1088,7 +1088,7 @@ export class TaskTreeDataProvider implements TreeDataProvider<TreeItem>
scriptOffset = offset;
}
}
else if (property === "label" && inTasks && !inTaskLabel)
else if ((property === "label" || property === "script") && inTasks && !inTaskLabel)
{
inTaskLabel = "label";
if (!inTaskLabel)
Expand Down

0 comments on commit 4870016

Please sign in to comment.