From b5cb20d12455e6c4146de01cb89786f95a6a4419 Mon Sep 17 00:00:00 2001 From: Techatrix Date: Sun, 8 Sep 2024 19:52:53 +0200 Subject: [PATCH] update to Zine 0.6.1 --- build.zig.zon | 4 ++-- content/{index.md => index.smd} | 12 +++++++---- .../zls/releases/{0.10.0.md => 0.10.0.smd} | 4 +++- .../zls/releases/{0.11.0.md => 0.11.0.smd} | 4 +++- .../zls/releases/{0.12.0.md => 0.12.0.smd} | 21 ++++++++++++++++++- .../zls/releases/{0.13.0.md => 0.13.0.smd} | 4 +++- content/zls/releases/{index.md => index.smd} | 0 7 files changed, 39 insertions(+), 10 deletions(-) rename content/{index.md => index.smd} (93%) rename content/zls/releases/{0.10.0.md => 0.10.0.smd} (99%) rename content/zls/releases/{0.11.0.md => 0.11.0.smd} (96%) rename content/zls/releases/{0.12.0.md => 0.12.0.smd} (97%) rename content/zls/releases/{0.13.0.md => 0.13.0.smd} (92%) rename content/zls/releases/{index.md => index.smd} (100%) diff --git a/build.zig.zon b/build.zig.zon index 7afa438..27414b5 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -4,8 +4,8 @@ .minimum_zig_version = "0.13.0", .dependencies = .{ .zine = .{ - .url = "git+https://github.com/kristoff-it/zine?ref=v0.4.5#dc7e4d32b3002fa88220277d5a08e53b8435a651", - .hash = "1220b73876d68d561d9bbe2146784949f2b96bbab4adf5b8da2d8e8e9709e1893a2e", + .url = "git+https://github.com/kristoff-it/zine?ref=v0.6.1#872c474b33dab2dd35e37bcf156149d20498197c", + .hash = "1220a59c2cf0e42a6f42cf1bf9b6a6c2691abfd91fcafa0e81a6282c4a197d05c41a", }, }, .paths = .{ diff --git a/content/index.md b/content/index.smd similarity index 93% rename from content/index.md rename to content/index.smd index a18c3cb..83e3855 100644 --- a/content/index.md +++ b/content/index.smd @@ -11,8 +11,8 @@ ZLS is a non-official implementation of the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) for [Zig](https://ziglang.org/) in [Zig](https://ziglang.org/). It provides developers with IDE features in their editor. -- [Installation Guide](zls/install/index.html) -- [Releases](zls/releases/) +- [Installation Guide](/zls/install/) +- [Releases](/zls/releases/) - [GitHub](https://github.com/zigtools/zls) - [Discord Server](https://discord.gg/5m5U3qpUhk) @@ -27,11 +27,14 @@ A demonstration of Zig and ZLS running inside of a browser using Webassembly. zig-lsp-codegen provides all necessary building blocks to develop [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) implementations (like ZLS) in [Zig](https://ziglang.org/). +- [GitHub](https://github.com/zigtools/zig-lsp-codegen) + +```=html +``` -- [GitHub](https://github.com/zigtools/zig-lsp-codegen) - +```=html +``` \ No newline at end of file diff --git a/content/zls/releases/0.10.0.md b/content/zls/releases/0.10.0.smd similarity index 99% rename from content/zls/releases/0.10.0.md rename to content/zls/releases/0.10.0.smd index 25f4a47..4a974f9 100644 --- a/content/zls/releases/0.10.0.md +++ b/content/zls/releases/0.10.0.smd @@ -220,7 +220,9 @@ We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone! -[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE) +```=html +OpenCollective Backers +``` **Full Changelog**: [0.9.0...0.10.0](https://github.com/zigtools/zls/compare/0.9.0...0.10.0) diff --git a/content/zls/releases/0.11.0.md b/content/zls/releases/0.11.0.smd similarity index 96% rename from content/zls/releases/0.11.0.md rename to content/zls/releases/0.11.0.smd index 35db848..9162109 100644 --- a/content/zls/releases/0.11.0.md +++ b/content/zls/releases/0.11.0.smd @@ -60,7 +60,9 @@ We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone! -[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE) +```=html +OpenCollective Backers +``` **Full Changelog**: [0.10.0...0.11.0](https://github.com/zigtools/zls/compare/0.10.0...0.11.0) diff --git a/content/zls/releases/0.12.0.md b/content/zls/releases/0.12.0.smd similarity index 97% rename from content/zls/releases/0.12.0.md rename to content/zls/releases/0.12.0.smd index 94823a4..3b551da 100644 --- a/content/zls/releases/0.12.0.md +++ b/content/zls/releases/0.12.0.smd @@ -7,6 +7,7 @@ } --- +```=html +``` ## Feature improvements ### New Type Hints ([#1444](https://github.com/zigtools/zls/pull/1444)) ([#1512](https://github.com/zigtools/zls/pull/1512)) ([#1778](https://github.com/zigtools/zls/pull/1778)) +```=html +``` New inlay hints have been added for variable declarations, captured values and struct literal fields. +```=html +``` ![new type hints](new-type-hints.png) @@ -111,18 +117,24 @@ Completions inside an `@import` will include the `std` and `builtin` module with A config option in Vim/Neovim depends on the LSP or completion plugin being used. + +```=html +``` Kate Editor has a config option for this feature `Configure` -> `Editing` -> `Auto Completion` -> `Auto word completion` -> `Remove tail on complete` but it does not use ZLS. #### completions for function aliases with self parameters ([#1656](https://github.com/zigtools/zls/pull/1656)) +```=html +``` Declarations to function alias that take a self parameter are now included when providing completions on member access. The following example would previously not give any completions. +```=html +``` ![completions on function alias](completions-on-function-alias.png) @@ -172,7 +185,9 @@ When your editor does not support displaying a message window, you will still fi #### autofix disabled by default +```=html +``` The autofix feature is now disabled by default. ([#1657](https://github.com/zigtools/zls/pull/1657)) @@ -194,7 +209,9 @@ This options served as a workaround for an issue with long completion detail ent ### Performance +```=html +``` The [DocumentScope](https://github.com/zigtools/zls/blob/master/src/DocumentScope.zig) is an internal datastructure of ZLS that keeps track of variables, declarations and their scopes. Most analysis relies on it to perform symbol lookups, iterate symbols or quickly traverse scopes. Every time a document is modified, the DocumentScope is rebuilt for the entire document so it has been rewritten with Data-oriented design principles in mind to reduce its performance footprint. ([#1517](https://github.com/zigtools/zls/pull/1517)) @@ -251,7 +268,9 @@ When encountering issues, do not hesitate to report your issues on the [Github i We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone! -[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE) +```=html +OpenCollective Backers +``` **Full Changelog**: [0.11.0...0.12.0](https://github.com/zigtools/zls/compare/0.11.0...0.12.0) diff --git a/content/zls/releases/0.13.0.md b/content/zls/releases/0.13.0.smd similarity index 92% rename from content/zls/releases/0.13.0.md rename to content/zls/releases/0.13.0.smd index 21966f1..466c1e8 100644 --- a/content/zls/releases/0.13.0.md +++ b/content/zls/releases/0.13.0.smd @@ -19,7 +19,9 @@ This release is meant to provide compatibility with Zig 0.13.0 We'd like to take a second to thank all our awesome [contributors](https://github.com/zigtools/zls/graphs/contributors) and donators/backers/sponsors; if you have time or money to spare, consider partaking in either of these options - they help keep ZLS awesome for everyone! -[![OpenCollective Backers](https://opencollective.com/zigtools/backers.svg?width=890&limit=1000)](https://opencollective.com/zigtools#category-CONTRIBUTE) +```=html +OpenCollective Backers +``` **Full Changelog**: [0.12.0...0.13.0](https://github.com/zigtools/zls/compare/0.12.0...0.13.0) diff --git a/content/zls/releases/index.md b/content/zls/releases/index.smd similarity index 100% rename from content/zls/releases/index.md rename to content/zls/releases/index.smd