diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-06-02 12:05:29 +0200 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2025-06-02 12:05:29 +0200 |
| commit | 8475898082ebe4ce40594a0b572be86bcc11ac45 (patch) | |
| tree | cf12ee14dbc74d55ba1d612dcd097eb18caec4b4 | |
| parent | fix: enable :LspLog command in Nvim 0.11.2 #3883 (diff) | |
| download | nvim-lspconfig-8475898082ebe4ce40594a0b572be86bcc11ac45.tar nvim-lspconfig-8475898082ebe4ce40594a0b572be86bcc11ac45.tar.gz nvim-lspconfig-8475898082ebe4ce40594a0b572be86bcc11ac45.tar.bz2 nvim-lspconfig-8475898082ebe4ce40594a0b572be86bcc11ac45.tar.lz nvim-lspconfig-8475898082ebe4ce40594a0b572be86bcc11ac45.tar.xz nvim-lspconfig-8475898082ebe4ce40594a0b572be86bcc11ac45.tar.zst nvim-lspconfig-8475898082ebe4ce40594a0b572be86bcc11ac45.zip | |
ci: allows "workspace/executeCommand" in eslint config
Problem:
client:exec_cmd() does not support synchronous invocation. https://github.com/neovim/nvim-lspconfig/pull/3876
Solution:
Special-case eslint in the linter.
| -rw-r--r-- | .github/ci/lint.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/ci/lint.sh b/.github/ci/lint.sh index 0433f4cf..d5a0eb2e 100644 --- a/.github/ci/lint.sh +++ b/.github/ci/lint.sh @@ -45,7 +45,8 @@ _check_lsp_cmd_prefix() { # Enforce client:exec_cmd(). _check_exec_cmd() { - if git grep -P 'workspace.executeCommand' -- 'lsp/*.lua' ; then + local exclude='eslint' + if git grep -P 'workspace.executeCommand' -- 'lsp/*.lua' | grep -v "$exclude" ; then _fail 'Use client:exec_cmd() instead of calling request("workspace/executeCommand") directly. Example: lsp/pyright.lua' fi } |
