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})
source

->scope-rangeclj

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

absolute-pathclj

(absolute-path path db)
source

absolute-path?clj

(absolute-path? path)
source

assoc-in-someclj

(assoc-in-some m ks v)
source

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

class-file?clj

(class-file? uri)
source

client-changesclj

(client-changes changes db)
source

clojure-lsp-versionclj

(clojure-lsp-version)
source

colorizeclj

(colorize s color)
source

conform-uri-schemeclj

(conform-uri-scheme uri)
source

debounce-allclj

(debounce-all in ms)

Debounce in channel with ms miliseconds returning all values.

Debounce in channel with ms miliseconds returning all values.
sourceraw 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.
sourceraw 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.
sourceraw docstring

directory?clj

(directory? f)
source

dissoc-inclj

(dissoc-in m key-vec)
source

ensure-jarfileclj

(ensure-jarfile uri db)
source

external-filename?clj

(external-filename? filename source-paths)
source

file-exists?clj

(file-exists? f)
source

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

format-time-delta-msclj

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

full-file-rangeclj

source

generate-and-update-analysis-checksumsclj

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

ignore-path?clj

(ignore-path? settings path)
source

inside?clj

(inside? a b)

Checks if element a is inside element b scope.

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

jar-file?clj

(jar-file? filename)
source

join-filepathsclj

(join-filepaths & components)
source

keywordize-first-depthclj

(keywordize-first-depth m)
source

line-separatorclj

The system's line separator.

The system's line separator.
sourceraw 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.
sourceraw docstring

logging-taskcljmacro

(logging-task task-id & body)
source

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

namespace->uriclj

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

normalize-fileclj

(normalize-file file)
source

normalize-uri-from-clientclj

(normalize-uri-from-client uri)
source

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

plain-uri?clj

(plain-uri? uri)
source

position->row-colclj

(position->row-col position)
source

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

row-col->positionclj

(row-col->position row col)
source

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

start-time->end-time-msclj

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

to-fileclj

(to-file path child)
source

uri->available-langsclj

(uri->available-langs uri)
source

uri->file-typeclj

(uri->file-type uri)
source

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

uri->namespaceclj

(uri->namespace uri db)
source

uri->pathclj

(uri->path uri)
source

uri->source-pathclj

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

uri->source-pathsclj

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

valid-langsclj

source

valid-url?clj

(valid-url? value)
source

windows-os?clj

source

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

× close