Make ZLS runner target explicit in workspace BUILD files and update the zls.sh script accordingly.
This commit is contained in:
parent
47a4eda5f6
commit
948c577205
@ -1,4 +1,10 @@
|
|||||||
load("@rules_zig//zig:defs.bzl", "zls_completion")
|
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(
|
zls_completion(
|
||||||
name = "completion",
|
name = "completion",
|
||||||
|
|||||||
7
third_party/zls/BUILD.bazel
vendored
7
third_party/zls/BUILD.bazel
vendored
@ -1,10 +1,5 @@
|
|||||||
load(":zls.bzl", "targets", "zls_runner")
|
load(":zls.bzl", "targets")
|
||||||
|
|
||||||
toolchain_type(name = "toolchain_type")
|
toolchain_type(name = "toolchain_type")
|
||||||
|
|
||||||
targets()
|
targets()
|
||||||
|
|
||||||
zls_runner(
|
|
||||||
name = "zls",
|
|
||||||
target = "//:completion",
|
|
||||||
)
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
||||||
cd "$(bazel info workspace)"
|
cd "$(bazel info workspace)"
|
||||||
exec bazel run -- @zml//third_party/zls:zls "${@}"
|
exec bazel run -- @zml//:zls "${@}"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user