Liking cljdoc? Tell your friends :D

clojure-lsp.shared


->rangeclj

(->range {:keys [name-row name-end-row name-col name-end-col row end-row col
                 end-col]
          :as element})

->scope-rangeclj

(->scope-range {:keys [name-row name-end-row name-col name-end-col row end-row
                       col end-col]
                :as element})

absolute-pathclj

(absolute-path path db)

absolute-path?clj

(absolute-path? path)

assoc-in-someclj

(assoc-in-some m ks v)

assoc-someclj

(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. 
raw docstring

class-file?clj

(class-file? uri)

client-changesclj

(client-changes changes db)

clojure-lsp-versionclj


colorizeclj

(colorize s color)

conform-uri-schemeclj

(conform-uri-scheme uri)

debounce-allclj

(debounce-all in ms)

Debounce in channel with ms miliseconds returning all values.

Debounce in channel with ms miliseconds returning all values.
raw docstring

debounce-byclj

(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.
raw docstring

deep-mergeclj

(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.
raw docstring

dir-uris->file-urisclj

(dir-uris->file-uris dir-uris db)

directory?clj

(directory? f)

dissoc-inclj

(dissoc-in m key-vec)

ensure-jarfileclj

(ensure-jarfile uri db)

external-filename?clj

(external-filename? filename source-paths)

file-exists?clj

(file-exists? f)

filename->uriclj

(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.
raw docstring

format-time-delta-msclj

(format-time-delta-ms start-time end-time)

full-file-rangeclj


generate-and-update-analysis-checksumsclj

(generate-and-update-analysis-checksums paths global-db db)

ignore-path?clj

(ignore-path? settings path)

inside?clj

(inside? a b)

Checks if element a is inside element b scope.

Checks if element `a` is inside element `b` scope.
raw docstring

jar-file?clj

(jar-file? filename)

join-filepathsclj

(join-filepaths & components)

keywordize-first-depthclj

(keywordize-first-depth m)

level->severityclj


line-separatorclj

The system's line separator.

The system's line separator.
raw docstring

logging-resultscljmacro

(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.
raw docstring

logging-taskcljmacro

(logging-task task-id & body)

logging-timecljmacro

(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.
raw docstring

namespace+source-path->filenameclj

(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.
raw docstring

namespace->uriclj

(namespace->uri namespace source-path file-type db)

normalize-fileclj

(normalize-file file)

normalize-uri-from-clientclj

(normalize-uri-from-client uri)

path-separators-to-systemclj

(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.
raw docstring

plain-uri?clj

(plain-uri? uri)

position->row-colclj

(position->row-col position)

preserve-kebab-caseclj

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.
raw docstring

relativize-filepathclj

(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.
raw docstring

row-col->positionclj

(row-col->position row col)

slurp-uriclj

(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.
raw docstring

start-time->end-time-msclj

(start-time->end-time-ms start-time)

test-locations-regex-defaultclj


to-fileclj

(to-file path child)

uri->available-langsclj

(uri->available-langs uri)

uri->file-typeclj

(uri->file-type uri)

uri->filenameclj

(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.
raw docstring

uri->namespaceclj

(uri->namespace uri db)

uri->pathclj

(uri->path uri)

uri->source-pathclj

(uri->source-path uri source-paths)

uri->source-pathsclj

(uri->source-paths uri source-paths)

valid-langsclj


valid-url?clj

(valid-url? value)

windows-os?clj

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close