(->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})(absolute-path path db)(absolute-path? path)(assoc-in-some m ks v)(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.
(class-file? uri)(client-changes changes db)(colorize s color)(conform-uri-scheme uri)(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.
(dir-uris->file-uris dir-uris db)(directory? f)(dissoc-in m key-vec)(ensure-jarfile uri db)(external-filename? filename source-paths)(fast= a b)Faster = comparassion for string, symbols and keywords.
Faster `=` comparassion for string, symbols and keywords.
(file-exists? f)(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.
(format-time-delta-ms start-time end-time)(generate-and-update-analysis-checksums paths global-db db)(ignore-path? settings path)(inside? a b)Checks if element a is inside element b scope.
Checks if element `a` is inside element `b` scope.
(jar-file? filename)(join-filepaths & components)(keywordize-first-depth m)(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-task task-id & body)(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.
(md5 bytes)(namespace+source-path->filename namespace source-path file-type)Returns the path to the filename implied by NAMESPACE, starting at SOURCE-PATH and ending with FILE-TYPE.
FILE-TYPE must be a keyword which will simply be converted to a string.
Returns the path to the filename implied by NAMESPACE, starting at SOURCE-PATH and ending with FILE-TYPE. FILE-TYPE must be a keyword which will simply be converted to a string.
(namespace->uri namespace source-path file-type db)(normalize-file file)(normalize-uri-from-client uri)(path-separators-to-system path)Returns PATH with its file separators converted to match the system's file separators.
Returns PATH with its file separators converted to match the system's file separators.
(plain-uri? uri)(position->row-col position)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.
(row-col->position row col)(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.
(start-time->end-time-ms start-time)(to-file path child)(uri->available-langs uri)(uri->file-type uri)(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.
(uri->namespace uri db)(uri->path uri)(uri->source-path uri source-paths)(uri->source-paths uri source-paths)(valid-url? value)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |