lean4-htt/src/Lean/Data
Marc Huisinga 7ff7cf9b5a
feat: per-package server options (#2858)
This PR adds per-package server options to resolve #2455. It is based on
the previous work in #2456, but takes a different approach: options are
loaded for the specific file in the file worker when `print-paths` is
called, instead of loading them in the watchdog with a separate Lake
command. This change addresses review comments made in #2456.

In doing so, it introduces two new Lake config fields: 
- `leanOptions`: `-D` flag options that are passed to both the language
server and `lean` when building.
- `moreServerOptions`: `-D` flag options that are passed to the language
server.

Since `print-paths` must also accept a file path to compute the options
for that file, this PR is changing the API for `print-paths`. As there
have been numerous complaints about the name `print-paths`, I also
decided to change it to `setup-file` in this PR, since it would break
compatibility with the old Lake API anyways.

This PR deprecates the Lakefile field `moreServerArgs` in favor of
`moreGlobalServerArgs`, as suggested in the review for #2456.

Fixes #2455

---------

Co-authored-by: digama0 <mcarneir@andrew.cmu.edu>
2023-11-26 13:42:38 +00:00
..
Json chore: fix typos in comments 2023-10-08 10:46:05 +02:00
Lsp feat: rename request handler (#2462) 2023-11-21 13:10:52 +01:00
Xml fix: XML parsing bugs (#2601) 2023-10-04 11:51:22 +11:00
AssocList.lean chore: move Std.* data structures to Lean.* 2022-09-26 05:46:04 -07:00
Format.lean feat: intra-line withPosition formatting 2022-11-28 09:02:08 -08:00
FuzzyMatching.lean fix: fuzzy-find bonus for matching last characters of pattern and symbol (#1917) 2023-01-19 09:06:53 +01:00
HashMap.lean chore: get rid of all inline C annotations for LLVM (#2363) 2023-07-30 10:39:40 +02:00
HashSet.lean chore: get rid of all inline C annotations for LLVM (#2363) 2023-07-30 10:39:40 +02:00
Json.lean
JsonRpc.lean fix: re-read HTTP header when skipping notification in Ipc.readResponseAs 2023-11-14 17:34:04 +01:00
KVMap.lean feat: per-package server options (#2858) 2023-11-26 13:42:38 +00:00
LBool.lean
LOption.lean doc: some doc strings 2022-07-30 21:18:50 -07:00
Lsp.lean feat: datatypes for LSP code actions (#1654) 2022-09-28 09:07:39 +00:00
Name.lean chore: fix typos in comments 2023-10-08 10:46:05 +02:00
NameMap.lean feat: replay constants into an Environment (#2617) 2023-10-11 14:08:03 +11:00
NameTrie.lean feat: import auto-completion (#2904) 2023-11-24 07:46:19 +00:00
OpenDecl.lean chore: simplify parser cache key computation, panic on environment/token table divergence 2022-11-11 09:13:02 +01:00
Options.lean fix: implement String.toName using decodeNameLit 2023-05-28 17:38:57 -07:00
Parsec.lean fix: incorrect annotations 2022-09-24 14:20:21 -07:00
PersistentArray.lean chore: move Std.* data structures to Lean.* 2022-09-26 05:46:04 -07:00
PersistentHashMap.lean chore: move Std.* data structures to Lean.* 2022-09-26 05:46:04 -07:00
PersistentHashSet.lean chore: move Std.* data structures to Lean.* 2022-09-26 05:46:04 -07:00
Position.lean chore: closes #1683 2022-10-04 16:46:08 -07:00
PrefixTree.lean chore: move Std.* data structures to Lean.* 2022-09-26 05:46:04 -07:00
Rat.lean feat: missing Rat functions 2022-02-11 18:24:18 -08:00
RBMap.lean chore: more RBMap cleanup 2022-10-06 17:26:43 -07:00
RBTree.lean chore: move Std.* data structures to Lean.* 2022-09-26 05:46:04 -07:00
SMap.lean chore: move Std.* data structures to Lean.* 2022-09-26 05:46:04 -07:00
SSet.lean chore: convert doc/mod comments from /- to /--//-! (#1354) 2022-07-22 12:05:31 -07:00
Trie.lean perf: Use flat ByteArrays in Trie (#2529) 2023-09-20 13:22:37 +02:00
Xml.lean feat: add xml parser. 2021-07-13 09:58:27 -07:00