Make ZLS runner target explicit in workspace BUILD files and update the zls.sh script accordingly.

This commit is contained in:
Tarry Singh 2024-11-04 13:57:59 +00:00
parent 47a4eda5f6
commit 948c577205
3 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,10 @@
load("@rules_zig//zig:defs.bzl", "zls_completion")
load("@zml//third_party/zls:zls.bzl", "zls_runner")
zls_runner(
name = "zls",
target = ":completion",
)
zls_completion(
name = "completion",

View File

@ -1,10 +1,5 @@
load(":zls.bzl", "targets", "zls_runner")
load(":zls.bzl", "targets")
toolchain_type(name = "toolchain_type")
targets()
zls_runner(
name = "zls",
target = "//:completion",
)

View File

@ -1,4 +1,4 @@
#!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")"
cd "$(bazel info workspace)"
exec bazel run -- @zml//third_party/zls:zls "${@}"
exec bazel run -- @zml//:zls "${@}"