Commit graph

197 commits

Author SHA1 Message Date
Leonardo de Moura
4c9c62752e feat: improve checkpoint tactic 2022-03-31 20:51:53 -07:00
Sebastian Ullrich
147a5c2933 chore: prefer LEAN_SRC_PATH 2022-03-14 17:24:25 +01:00
Sebastian Ullrich
6c6f66b812 feat: propagate actual file name in file worker
Also stop recreating the FileMap for every command, that's quadratic!
2022-02-27 10:33:27 +01:00
Sebastian Ullrich
a7ba103e0a chore: remove leanpkg 2022-02-04 19:03:40 +01:00
Leonardo de Moura
12e2a79170 chore: fix codebase after removing auto pure 2022-02-03 18:08:14 -08:00
Joscha
d2dcff1f9a refactor: address review comments 2022-01-31 21:36:37 +01:00
Joscha
ccf492b61d feat: implement partial ilean updates 2022-01-31 21:36:37 +01:00
Wojciech Nawrocki
2d1cea0864 feat: inform server if widgets are available 2022-01-29 10:04:25 +01:00
Sebastian Ullrich
cfaba85199 feat: load precompiled modules in the server 2022-01-25 23:25:52 +01:00
Sebastian Ullrich
3abb70dbb5 refactor: factor out common source search path logic 2022-01-18 18:22:50 +01:00
larsk21
b712918db9 fix: unify handleDefinition for imports 2022-01-14 10:32:06 +01:00
larsk21
89bbaf514e feat: include imports in header snap info tree 2022-01-14 10:32:06 +01:00
Sebastian Ullrich
d503fe6d13 refactor: avoid double exception layer with AsyncList 2022-01-14 09:18:57 +01:00
Joscha
d8ec900ae9 refactor: use array instead of list in AsyncElabState 2022-01-14 09:18:57 +01:00
Joscha
ab52480b69 fix: implement suggestions 2022-01-14 09:18:57 +01:00
Joscha
f98cf0289c feat: send references notification when file evaluation finishes 2022-01-14 09:18:57 +01:00
Joscha
088433dc57 refactor: let AsyncList creation be stateful 2022-01-14 09:18:57 +01:00
Gabriel Ebner
dc65bb080a fix: race condition in RPC request handler 2022-01-10 13:37:40 +01:00
Gabriel Ebner
f146d456ce fix: only enable InsertReplaceEdit if supported 2022-01-07 20:28:10 +01:00
Sebastian Ullrich
9e5ff3db0e feat: setMainModule in worker 2021-12-17 12:22:53 +01:00
Sebastian Ullrich
51adfa2e0c fix: do not call lake print-paths for lakefile.lean
Fixes #873
2021-12-17 12:22:30 +01:00
larsk21
d50c08360d feat: change error flag to progress kind in LeanFileProgressProcessingInfo 2021-12-15 13:00:05 +01:00
larsk21
dcbc526115 feat: report header processing errors as error progress 2021-12-15 13:00:05 +01:00
Gabriel Ebner
45bcef5dab refactor: server: use String.firstDiffPos to find changes
This is necessary so that we do not reprocess the whole file if
incremental sync is disabled.
2021-12-14 11:55:34 -08:00
Sebastian Ullrich
c6c56b15e1 feat: findSysroot? & reworked initSearchPath 2021-11-20 11:04:39 +01:00
Sebastian Ullrich
8df2b07209 refactor: remove double exception layer in RequestM 2021-11-09 16:58:13 +01:00
Sebastian Ullrich
138d9eea43 fix: server: custom search path should win over package one should win over system one
I think that's all permutations now
2021-11-09 14:27:13 +01:00
Sebastian Ullrich
e92f7f1b4b refactor: server: assume 1 info tree per snapshot 2021-11-04 18:31:36 +01:00
Wojciech Nawrocki
128a71c726 fix: excessive RPC logging 2021-11-01 09:11:31 -07:00
Sebastian Ullrich
f202c7c322 fix: prefer local search path 2021-10-22 12:48:37 +02:00
Sebastian Ullrich
91f1948f50 fix: Lake search path 2021-10-22 12:30:30 +02:00
Sebastian Ullrich
b3c8ee2923 fix: add Lake to built-in search path 2021-10-19 10:57:13 +02:00
Sebastian Ullrich
6a90b30875 fix: prefer user-given search paths 2021-10-19 10:57:13 +02:00
Sebastian Ullrich
08dbf239a6 chore: server: redundant let 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
674e473c84 feat: server: support LAKE env var 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
6a1897302b chore: server: use exit code to communicate absence of package 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
765ed37409 feat: server: support Lake 2021-10-15 06:56:02 -07:00
Sebastian Ullrich
0a43a9c466 refactor: use JSON to communicate between server & package manager 2021-10-08 11:28:04 +02:00
Sebastian Ullrich
3787c6081c fix: pass worker cmdline options to Lean code 2021-09-08 11:34:31 +02:00
Wojciech Nawrocki
2f5fbf3b13 feat: support multiple RPC sessions
Motivation: we may want to also use RPC in editor insets, or multiple
webviews in general.
2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
e4fb367f20 chore: make rpc/connect a request 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
1b68daef39 fix: clear messages earlier 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
c948d87a28 chore: forgot import 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
568cc3cf11 refactor: consistent naming of widget modules 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
f7e9ba76dd perf: cache diagnostics in server
Reason 1: we were making quadratically many pretty-printer calls since each `publishMessages` would format the entire `MessageLog`.

Reason 2: we want to avoid formatting each diagnostic twice, once as interactive, and once as plain LSP diagnostic.
2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
ce7f31a654 feat: keep-alive semantics for RPC sessions 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
d116e2e923 feat: batch RPC release 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
cc23a21d3e chore: cleanup 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
ae24d8a2db feat: interactive diagnostics take 1 2021-08-24 08:57:41 -07:00
Wojciech Nawrocki
72df64e8fe chore: move RpcSession 2021-08-24 08:57:41 -07:00