Can access read global config file from UI

Only for reload case
This commit is contained in:
Gabriel Horner
2022-09-01 11:45:02 -04:00
committed by Andelf
parent 5b50e229e0
commit 9c0bb02dcd
6 changed files with 57 additions and 15 deletions

View File

@@ -595,8 +595,10 @@
(state/set-state! :plugin/indicator-text "LOADING")
(-> (p/let [root (get-ls-dotdir-root)
_ (.setupPluginCore js/LSPlugin (bean/->js {:localUserConfigRoot root :dotConfigRoot root}))
(->
(p/let [root (get-ls-dotdir-root)
_ (.setupPluginCore js/LSPlugin (bean/->js {:localUserConfigRoot root :dotConfigRoot root}))
_ (state/set-state! :config/root-dir root)
clear-commands! (fn [pid]
;; commands