Skip to content

Commit

Permalink
fix: completions error when ns not found for alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuebert committed Jul 28, 2023
1 parent 9255323 commit 1e0e818
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions editor2/src/main/maria/editor/code/completions.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@
(some-> (sci.ns/sci-ns-aliases ctx current-ns)
(get (symbol ns-name-str))))
current-ns)
syms (if ns-name-str
(sci.ns/sci-ns-publics ctx sci-ns)
(sci.ns/sci-ns-map ctx sci-ns))
syms (when sci-ns
(if ns-name-str
(sci.ns/sci-ns-publics ctx sci-ns)
(sci.ns/sci-ns-map ctx sci-ns)))
results #js{:from from
:to to
:validFor #"^[^ \[\](){}@#]+"
Expand Down

0 comments on commit 1e0e818

Please sign in to comment.