|
@@ -767,7 +767,7 @@
|
|
|
(let [text (state/sub :plugin/indicator-text)]
|
|
(let [text (state/sub :plugin/indicator-text)]
|
|
|
(when-not (= text "END")
|
|
(when-not (= text "END")
|
|
|
[:div.flex.align-items.justify-center.h-screen.w-full.preboot-loading
|
|
[:div.flex.align-items.justify-center.h-screen.w-full.preboot-loading
|
|
|
- [:span.flex.items-center.justify-center.w-60.flex-col
|
|
|
|
|
|
|
+ [:span.flex.items-center.justify-center.flex-col
|
|
|
[:small.scale-250.opacity-70.mb-10.animate-pulse (svg/logo)]
|
|
[:small.scale-250.opacity-70.mb-10.animate-pulse (svg/logo)]
|
|
|
[:small.block.text-sm.relative.opacity-50 {:style {:right "-8px"}} text]]])))
|
|
[:small.block.text-sm.relative.opacity-50 {:style {:right "-8px"}} text]]])))
|
|
|
|
|
|
|
@@ -779,8 +779,6 @@
|
|
|
(rum/mount
|
|
(rum/mount
|
|
|
(lsp-indicator) el))
|
|
(lsp-indicator) el))
|
|
|
|
|
|
|
|
- (state/set-state! :plugin/indicator-text "LOADING")
|
|
|
|
|
-
|
|
|
|
|
(-> (p/let [root (init-ls-dotdir-root)
|
|
(-> (p/let [root (init-ls-dotdir-root)
|
|
|
_ (.setupPluginCore js/LSPlugin (bean/->js {:localUserConfigRoot root :dotConfigRoot root}))
|
|
_ (.setupPluginCore js/LSPlugin (bean/->js {:localUserConfigRoot root :dotConfigRoot root}))
|
|
|
|
|
|
|
@@ -799,6 +797,10 @@
|
|
|
(register-plugin
|
|
(register-plugin
|
|
|
(bean/->clj (.parse js/JSON (.stringify js/JSON pl))))))
|
|
(bean/->clj (.parse js/JSON (.stringify js/JSON pl))))))
|
|
|
|
|
|
|
|
|
|
+ (.on "beforeload"
|
|
|
|
|
+ (fn [^js pl]
|
|
|
|
|
+ (state/set-state! :plugin/indicator-text (util/format "Load plugin: %s..." (.-id pl)))))
|
|
|
|
|
+
|
|
|
(.on "reloaded"
|
|
(.on "reloaded"
|
|
|
(fn [^js pl]
|
|
(fn [^js pl]
|
|
|
(register-plugin
|
|
(register-plugin
|