Commit graph

137 commits

Author SHA1 Message Date
Wojciech Nawrocki
b9cc6a709f feat: amortise fileworker restarts and change processing 2021-01-22 18:02:31 +01:00
Sebastian Ullrich
c1a07e5687 chore: Nix: delete obsolete workaround 2021-01-21 15:01:40 +01:00
Sebastian Ullrich
2a45525b24 chore: clean up code 2021-01-21 15:00:38 +01:00
Sebastian Ullrich
fbb1184f25 feat: auto-add stdlib to LEAN_SRC_PATH for installed Lean 2021-01-21 14:18:52 +01:00
Sebastian Ullrich
316b453be4 chore: do not show term info for synthetic sorry 2021-01-20 16:48:50 +01:00
Sebastian Ullrich
67c78ef1b7 fix: exclude synthetic syntax from hover/definition 2021-01-20 16:48:50 +01:00
Sebastian Ullrich
a9f96ace3e chore: naming 2021-01-20 16:48:50 +01:00
Sebastian Ullrich
79107a2316 feat: copy & store whole ref range in SourceInfo 2021-01-20 16:48:50 +01:00
Wojciech Nawrocki
445420315e fix: normalise go-to-def paths 2021-01-19 13:22:13 -08:00
Wojciech Nawrocki
90075153b3 fix: UTF-16 strikes again
We need to report the jump target range in terms of a UTF-16 offset within the line, but to compute that we would have to load the target file, file-map it, and resolve that way each time the go-to-def handler runs. As an alternative, this stores the UTF-16 offsets in `DeclarationRange`.
2021-01-19 13:22:13 -08:00
Wojciech Nawrocki
e627ad308d feat: go-to-definition 2021-01-19 13:22:13 -08:00
Wojciech Nawrocki
40698ecc07 feat: LSP scaffolding for go-to-definition 2021-01-19 13:22:13 -08:00
Wojciech Nawrocki
f07cf2c4e4 feat: store source path in server worker 2021-01-19 13:22:13 -08:00
Sebastian Ullrich
bc0f43c4b9 chore: remove a few dbgTraceVals... 2021-01-19 19:31:44 +01:00
Sebastian Ullrich
38911d1be3 feat: Nix: support leanpkg print-paths setup 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
8ad061e328 feat: leanpkg: change print-path to print-paths that also emit LEAN_SRC_PATH (unused as of yet) 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
e5c485ff45 feat: incremental progress notification while compiling dependencies 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
d7733ba662 feat: use leanpkg print-path for worker initialization 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
35e4f7391a feat: publish fatal worker error as diagnostic 2021-01-19 19:06:01 +01:00
Sebastian Ullrich
2eb0f58bdd chore: restart worker only on didChange
will otherwise be constantly retriggered by documentSymbol in Emacs
2021-01-19 19:06:01 +01:00
Christian Pehle
066baeccc0 fix: pass (some) cmdline arguments to watchdog and workers
Capture some of the command line arguments in an argument
vector, that then gets passed to the watchdog and
subsequently the worker processes. Currently flags like
"-T" and "-j2" are not passed on to the watchdog and
worker processes.

Addresses #246
2021-01-17 15:06:11 +01:00
Sebastian Ullrich
fcb1616c20 chore: reduce dependencies 2021-01-16 19:45:45 +01:00
Wojciech Nawrocki
d7c201a2d4 chore: minor hover code cleanup 2021-01-15 13:29:22 -08:00
Sebastian Ullrich
fa7e679c73 feat: hover: use syntax highlighting 2021-01-15 13:29:22 -08:00
Wojciech Nawrocki
310a2ab6a3 feat: minimal hovers MVP 2021-01-15 13:29:22 -08:00
Wojciech Nawrocki
cba3d69e78 feat: enable info trees in server 2021-01-15 13:29:22 -08:00
Wojciech Nawrocki
5a46f43b56 fix: elab cancellation on server exit 2021-01-15 13:29:22 -08:00
Sebastian Ullrich
3a9658b91f chore: obsolete comment 2021-01-13 16:39:00 +01:00
Leonardo de Moura
873634be7e feat: hierarchical InfoTree 2021-01-09 14:10:11 -08:00
Wojciech Nawrocki
238f5c1d70 feat: type info 2021-01-09 14:10:11 -08:00
Sebastian Ullrich
626ff28e0e refactor: Wojciech tells me I should simply do it like this instead 2021-01-03 00:41:31 +01:00
Sebastian Ullrich
cf101fa5ae chore: that last commit shouldn't have worked, and yet apparently it did 2021-01-02 23:45:25 +01:00
Sebastian Ullrich
d576827e60 fix: wait for imports on document symbols request 2021-01-02 23:23:54 +01:00
Wojciech Nawrocki
66a715dde1
chore: tolerate more errors in server 2021-01-02 14:32:27 -05:00
Sebastian Ullrich
4c3b247dee feat: server: report document symbol hierarchy 2020-12-31 15:00:59 +01:00
Sebastian Ullrich
da0777ece6 chore: deactivate hover provider for now 2020-12-31 10:56:45 +01:00
Wojciech Nawrocki
d2a992adf7 feat: filter server request cancellations 2020-12-31 10:45:58 +01:00
Wojciech Nawrocki
19e395ded7 feat: begin work on mouse hovers in server 2020-12-31 10:45:58 +01:00
Sebastian Ullrich
bcc84ce49b fix: cancellation
Interestingly this led to a deadlock in `edits.lean` using `-j2` (hardcoded because of #246), should maybe investigate this...
2020-12-30 22:34:10 +01:00
Sebastian Ullrich
8e3052fe8d feat: server: show "processing..." message 2020-12-30 22:34:10 +01:00
Sebastian Ullrich
4c43f76b2a chore: use explicit cancellation token in server 2020-12-30 17:03:35 +01:00
Wojciech Nawrocki
f2197e8c87
fix: clear pending server requests and read client messages asynchronously 2020-12-25 17:02:24 -05:00
Sebastian Ullrich
2740a8c012 chore: adapt server to upstream 2020-12-23 20:00:36 +01:00
Sebastian Ullrich
f4ef29b800 chore: remove obsolete workaround 2020-12-23 20:00:36 +01:00
Sebastian Ullrich
1c4460a206 chore: move lean4-lsp into lean4-mode 2020-12-23 20:00:36 +01:00
Sebastian Ullrich
be8abe9f86 feat: Nix: support LSP 2020-12-23 20:00:36 +01:00
Sebastian Ullrich
c7262544ab chore: simplify & fix lean4-lsp.el 2020-12-23 20:00:36 +01:00
Wojciech Nawrocki
93f32ae173 chore: misc changes to server 2020-12-23 20:00:36 +01:00
Wojciech Nawrocki
ed81967338 doc: AsyncList methods 2020-12-23 20:00:36 +01:00
mhuisi
883c197830 chore: string formatting 2020-12-23 20:00:36 +01:00