Skip to content

Commit

Permalink
fix: vscode task hide option was not set correctly
Browse files Browse the repository at this point in the history
Moved the check above the "return"s
  • Loading branch information
lnc3l0t committed Jul 10, 2024
1 parent 433ae54 commit 1a4e5f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/overseer/template/vscode/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ local function convert_vscode_task(defn, precalculated_vars)
end
end
end
if defn.hide then
tmpl.hide = true
end
if defn.dependsOn then
if type(defn.dependsOn) == "string" then
defn.dependsOn = { defn.dependsOn }
Expand Down Expand Up @@ -297,9 +300,6 @@ local function convert_vscode_task(defn, precalculated_vars)
)
return nil
end
if defn.hide then
tmpl.hide = true
end

-- NOTE: we intentionally do nothing with defn.runOptions.
-- runOptions.reevaluateOnRun unfortunately doesn't mesh with how we re-run tasks
Expand Down

0 comments on commit 1a4e5f6

Please sign in to comment.