minor doc edits
This commit is contained in:
parent
fd40c31cd9
commit
2f6ee96404
@ -263,7 +263,6 @@ identifiers are declared / referenced in which places."
|
|||||||
(table.insert defer #(tset ?ast 1 old))
|
(table.insert defer #(tset ?ast 1 old))
|
||||||
true))))
|
true))))
|
||||||
|
|
||||||
|
|
||||||
(λ on-compile-error [_ msg ast call-me-to-reset-the-compiler]
|
(λ on-compile-error [_ msg ast call-me-to-reset-the-compiler]
|
||||||
(let [range (or (message.ast->range self file ast)
|
(let [range (or (message.ast->range self file ast)
|
||||||
(line+byte->range self file 1 1))]
|
(line+byte->range self file 1 1))]
|
||||||
@ -344,6 +343,7 @@ identifiers are declared / referenced in which places."
|
|||||||
(λ parsed [ast]
|
(λ parsed [ast]
|
||||||
"runs on every ast tree that was parsed"
|
"runs on every ast tree that was parsed"
|
||||||
;; TODO in fennel 1.5+, bug fennel#221 will be fixed, and all syms in the ast should have a bytestart
|
;; TODO in fennel 1.5+, bug fennel#221 will be fixed, and all syms in the ast should have a bytestart
|
||||||
|
;; the extra check can be removed
|
||||||
(if (and (sym? ast) ast.bytestart)
|
(if (and (sym? ast) ast.bytestart)
|
||||||
(case (values (tostring ast) (file.text:sub ast.bytestart ast.bytestart))
|
(case (values (tostring ast) (file.text:sub ast.bytestart ast.bytestart))
|
||||||
(where (:hashfn "#"))
|
(where (:hashfn "#"))
|
||||||
|
|||||||
@ -1,7 +1,8 @@
|
|||||||
"State
|
"State
|
||||||
This module keeps track of the state of the language server.
|
This module keeps track of the state of the language server:
|
||||||
There are helpers to get files (get-by functions are all for
|
* Settings
|
||||||
getting files), and there's stuff for configuration options.
|
* Loaded files
|
||||||
|
|
||||||
There is no global state in this project: all state is stored
|
There is no global state in this project: all state is stored
|
||||||
in the \"self\" object. Pretty much every \"self\" in the
|
in the \"self\" object. Pretty much every \"self\" in the
|
||||||
entire fennel-ls project is referring to the same object."
|
entire fennel-ls project is referring to the same object."
|
||||||
@ -137,6 +138,7 @@ However, when not an option, fennel-ls will fall back to positionEncoding=\"utf-
|
|||||||
(set self.EGLOT_COMPLETION_QUIRK_MODE (= (?. params :clientInfo :name) :Eglot)))
|
(set self.EGLOT_COMPLETION_QUIRK_MODE (= (?. params :clientInfo :name) :Eglot)))
|
||||||
|
|
||||||
(λ write-configuration [self ?configuration]
|
(λ write-configuration [self ?configuration]
|
||||||
|
"This is where we can put anything that needs to react to config changes"
|
||||||
(set self.configuration (make-configuration ?configuration)))
|
(set self.configuration (make-configuration ?configuration)))
|
||||||
|
|
||||||
{: flush-uri
|
{: flush-uri
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user