aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-06-02 12:05:29 +0200
committerJustin M. Keyes <justinkz@gmail.com>2025-06-02 12:05:29 +0200
commit8475898082ebe4ce40594a0b572be86bcc11ac45 (patch)
treecf12ee14dbc74d55ba1d612dcd097eb18caec4b4 /.github
parentfix: enable :LspLog command in Nvim 0.11.2 #3883 (diff)
downloadnvim-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.
Diffstat (limited to '.github')
-rw-r--r--.github/ci/lint.sh3
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
}