Skip to content

Commit

Permalink
Fix completion for current ns
Browse files Browse the repository at this point in the history
  • Loading branch information
eval committed Mar 31, 2024
1 parent 183e8a6 commit e884c19
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/eval/deps_try/rr_service.clj
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@
(mapcat :paths))]
(into java-cp-sans-cwd basis-cp)))

(defmethod clj-reader/-complete ::service [_self word options]
(let [options (if (:extra-metadata options) options (assoc options :extra-metadata #{:private :deprecated}))]
(defmethod clj-reader/-complete ::service [self word options]
(let [options (merge {:ns *ns*} options)
options (if (:extra-metadata options)
options
(assoc options :extra-metadata #{:private :deprecated}))]
(with-redefs [compliment.utils/classpath classpath-for-completions]
#_(prn ::-complete :word word :options options)
(doall (cond-> (compliment.core/completions word options)
Expand Down

0 comments on commit e884c19

Please sign in to comment.