Skip to content

Commit d35ca74

Browse files
committed
Fix deprecated workspaceRoot -> workspaceFolder
1 parent 7120e59 commit d35ca74

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/utils/helpers.cljs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
(ns utils.helpers
22
(:require [clojure.string :as s]))
33

4+
;; `workspaceRoot` is deprecated, the new variable name is `workspaceFolder`.
45
(defn render-workspace [path workspace-root]
5-
(s/replace path "${workspaceRoot}" workspace-root))
6+
(s/replace (s/replace path "${workspaceFolder}" workspace-root) "${workspaceRoot}" workspace-root))
67

78
(defn unrender-workspace [path workspace-root]
8-
(s/replace path workspace-root "${workspaceRoot}"))
9+
(s/replace path workspace-root "${workspaceFolder}"))
910

1011
(defn render-env-status [lang env-path]
1112
(s/replace (-> lang :label :env-selected)

0 commit comments

Comments
 (0)