feat(plguin): integration

This commit is contained in:
charlie
2021-05-08 14:14:19 +08:00
parent a1890e0a09
commit ba6b6429a9
16 changed files with 119 additions and 12 deletions

View File

@@ -4,6 +4,7 @@
[frontend.util :as util]
[frontend.fs :as fs]
[frontend.handler.notification :as notifications]
[frontend.storage :as storage]
[camel-snake-kebab.core :as csk]
[frontend.state :as state]
[medley.core :as md]
@@ -11,7 +12,9 @@
[cljs-bean.core :as bean]
[clojure.string :as string]))
(defonce lsp-enabled? (util/electron?))
(defonce lsp-enabled?
(and (util/electron?)
(= (storage/get "developer-mode") "true")))
;; state handlers
(defn register-plugin