Skip to content

Commit

Permalink
fix(bazelrc_lsp): invoke lsp subcommand explicitly (#3634)
Browse files Browse the repository at this point in the history
The bazelrc-lsp binary added other sub-commands besides the `lsp`
functionality (e.g., `bazelrc-lsp format` can be used to format files
from the command line). This commit updates the config such that
the `bazelrc-lsp lsp` is explicitly invoked. (Currently, `bazelrc-lsp`
still defaults to the `lsp` sub-command, but this default will likely be
removed in a future version)
  • Loading branch information
vogelsgesang authored Mar 1, 2025
1 parent a3f8422 commit ce540bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lspconfig/configs/bazelrc_lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local util = require 'lspconfig/util'

return {
default_config = {
cmd = { 'bazelrc-lsp' },
cmd = { 'bazelrc-lsp', 'lsp' },
filetypes = { 'bazelrc' },
root_dir = util.root_pattern('WORKSPACE', 'WORKSPACE.bazel', 'MODULE.bazel'),
},
Expand Down

0 comments on commit ce540bf

Please sign in to comment.