Compare commits

...

4 Commits

Author SHA1 Message Date
Marc Huisinga
5b0741933f doc: remove moreServerOptions example 2023-12-05 11:18:34 +01:00
Marc Huisinga
8a6c4ecaf8 doc: missing brackets
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
2023-12-05 11:08:19 +01:00
Marc Huisinga
3d7c926a8a doc: missing brackets
Co-authored-by: Mario Carneiro <di.gama@gmail.com>
2023-12-05 11:08:07 +01:00
Marc Huisinga
3e32a4afef doc: add migration guide for per-package server options 2023-12-05 10:43:28 +01:00

View File

@@ -14,10 +14,28 @@ v4.5.0 (development in progress)
v4.4.0
---------
* Lake and the language server now support per-package server options using the `moreServerOptions` config field, as well as options that apply to both the language server and `lean` using the `leanOptions` config field. Setting either of these fields instead of `moreServerArgs` ensures that viewing files from a dependency uses the options for that dependency. Additionally, `moreServerArgs` is being deprecated in favor of the `moreGlobalServerArgs` field. See PR [#2858](https://github.com/leanprover/lean4/pull/2858).
A Lakefile with the following deprecated package declaration:
```lean
def moreServerArgs := #[
"-Dpp.unicode.fun=true"
]
def moreLeanArgs := moreServerArgs
package SomePackage where
moreServerArgs := moreServerArgs
moreLeanArgs := moreLeanArgs
```
... can be updated to the following package declaration to use per-package options:
```lean
package SomePackage where
leanOptions := #[⟨`pp.unicode.fun, true⟩]
```
* [Rename request handler](https://github.com/leanprover/lean4/pull/2462).
* [Import auto-completion](https://github.com/leanprover/lean4/pull/2904).
* [`pp.beta`` to apply beta reduction when pretty printing](https://github.com/leanprover/lean4/pull/2864).
* [Per-package server options](https://github.com/leanprover/lean4/pull/2858).
* [Embed and check githash in .olean](https://github.com/leanprover/lean4/pull/2766).
* [Guess lexicographic order for well-founded recursion](https://github.com/leanprover/lean4/pull/2874).
* [Allow trailing comma in tuples, lists, and tactics](https://github.com/leanprover/lean4/pull/2643).