lean4-htt/tests/lean/interactive/autoBoundIssue.lean.expected.out
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

36 lines
1.6 KiB
Text

{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 13, "character": 21}}
{"range":
{"start": {"line": 13, "character": 21}, "end": {"line": 13, "character": 24}},
"goal":
"k : Fin ?m\nctx : Vector Ty ?m\nty u : Ty\n⊢ Vector Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 16, "character": 26}}
{"range":
{"start": {"line": 16, "character": 26}, "end": {"line": 16, "character": 29}},
"goal":
"k : Fin ?m\nctx : Vector Ty ?m\nty : Ty\n⊢ Vector Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 19, "character": 20}}
{"range":
{"start": {"line": 19, "character": 20}, "end": {"line": 19, "character": 23}},
"goal":
"k : Fin ?m\nctx : Vector Ty ?m\nty : Ty\n⊢ Vector Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 24, "character": 18}}
{"range":
{"start": {"line": 24, "character": 18}, "end": {"line": 24, "character": 21}},
"goal":
"k : Fin ?m\nctx : Vector Ty ?m\nty : Ty\n⊢ Vector Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 26, "character": 18}}
{"range":
{"start": {"line": 26, "character": 18}, "end": {"line": 26, "character": 21}},
"goal":
"aux : {x : Nat} → {k : Fin x} → {ctx : Vector Ty x} → {ty : Ty} → HasType k ctx ty\nk : Fin ?m\nctx : Vector Ty ?m\nty : Ty\n⊢ Vector Ty ?m"}
{"textDocument": {"uri": "file:///autoBoundIssue.lean"},
"position": {"line": 29, "character": 24}}
{"range":
{"start": {"line": 29, "character": 24}, "end": {"line": 29, "character": 27}},
"goal":
"k : Fin ?m\nctx : Vector Ty ?m\nty : Ty\n⊢ Vector Ty ?m"}