Skip to content

Commit

Permalink
improve wording of message when using an incompatible Zig version
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Dec 19, 2024
1 parent 81bc1fb commit 3ee022a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Server.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1077,13 +1077,13 @@ pub fn updateConfiguration(
if (zig_version_is_tagged) {
server.showMessage(
.Warning,
"Zig {} should be used with ZLS {}.{}.* but ZLS {} is being used.",
.{ zig_version, zig_version.major, zig_version.minor, zls_version },
"ZLS {} does not support Zig {}. A ZLS {}.{} release should be used instead.",
.{ zls_version, zig_version, zig_version.major, zig_version.minor },
);
} else if (zls_version_is_tagged) {
server.showMessage(
.Warning,
"ZLS {} should be used with Zig {}.{}.* but found Zig {}.",
"ZLS {} should be used with a Zig {}.{} release but found Zig {}.",
.{ zls_version, zls_version.major, zls_version.minor, zig_version },
);
} else {
Expand Down

0 comments on commit 3ee022a

Please sign in to comment.