(->range {:keys [name-row name-end-row name-col name-end-col row end-row col
end-col]
:as element})
(->scope-range {:keys [name-row name-end-row name-col name-end-col row end-row
col end-col]
:as element})
(assoc-some m k v)
(assoc-some m k v & kvs)
Assoc[iate] if the value is not nil.
Assoc[iate] if the value is not nil.
(debounce-all in ms)
Debounce in channel with ms miliseconds returning all values.
Debounce in channel with ms miliseconds returning all values.
(debounce-by in ms by-fn)
Debounce in channel with ms miliseconds distincting by by-fn.
Debounce in channel with ms miliseconds distincting by by-fn.
(deep-merge)
(deep-merge a)
(deep-merge a b)
(deep-merge a b & more)
Recursively merges maps together. Improved version of medley deep-merge concating colls instead of overwriting.
Recursively merges maps together. Improved version of medley deep-merge concating colls instead of overwriting.
(filename->uri filename db)
Converts an absolute file path into a file URI string.
Jar files are given the jar:file
or zipfile
scheme depending on the
:dependency-scheme
setting.
Converts an absolute file path into a file URI string. Jar files are given the `jar:file` or `zipfile` scheme depending on the `:dependency-scheme` setting.
(generate-and-update-analysis-checksums paths global-db db)
(inside? a b)
Checks if element a
is inside element b
scope.
Checks if element `a` is inside element `b` scope.
(logging-results message results-fn & body)
Executes body
, passing the results to results-fn
, which should return a
results message string. Logs message
formatted with the time spent from body
and the results message.
Executes `body`, passing the results to `results-fn`, which should return a results message string. Logs `message` formatted with the time spent from body and the results message.
(logging-time message & body)
Executes body
logging message
formatted with the time spent
from body.
Executes `body` logging `message` formatted with the time spent from body.
(namespace+source-path->filename namespace source-path file-type)
Recursively convert map keywords to kebab-case strings, to avoid automatic camelCase conversion that happens in lsp4clj. This is useful when the client expects Clojure style JSON, or when a map needs to be round-tripped from clojure-lsp to the client and back without case changes.
Recursively convert map keywords to kebab-case strings, to avoid automatic camelCase conversion that happens in lsp4clj. This is useful when the client expects Clojure style JSON, or when a map needs to be round-tripped from clojure-lsp to the client and back without case changes.
(relativize-filepath path root)
Returns absolute path
(string) as relative file path starting at root
(string)
The output representation path matches that of the operating system.
Returns absolute `path` (string) as relative file path starting at `root` (string) The output representation path matches that of the operating system.
(slurp-uri uri)
Slurp uri, returning nil if anything goes wrong, and in particular when the URI does not exist on disk. Also useful in with-redefs.
Slurp uri, returning nil if anything goes wrong, and in particular when the URI does not exist on disk. Also useful in with-redefs.
(uri->filename uri)
Converts a URI string into an absolute file path.
The output path representation matches that of the operating system.
Converts a URI string into an absolute file path. The output path representation matches that of the operating system.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close