aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMichele Sorcinelli <michelesr@users.noreply.github.com>2025-08-31 01:50:16 +0100
committerGitHub <noreply@github.com>2025-08-30 17:50:16 -0700
commit386231e6b746206147fc62d0243f09904a0a2f1f (patch)
treed5ea308c3231eadadcc9e8409e654241e9180d6c /.github
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-386231e6b746206147fc62d0243f09904a0a2f1f.tar
nvim-lspconfig-386231e6b746206147fc62d0243f09904a0a2f1f.tar.gz
nvim-lspconfig-386231e6b746206147fc62d0243f09904a0a2f1f.tar.bz2
nvim-lspconfig-386231e6b746206147fc62d0243f09904a0a2f1f.tar.lz
nvim-lspconfig-386231e6b746206147fc62d0243f09904a0a2f1f.tar.xz
nvim-lspconfig-386231e6b746206147fc62d0243f09904a0a2f1f.tar.zst
nvim-lspconfig-386231e6b746206147fc62d0243f09904a0a2f1f.zip
fix(pyright): command :LspPyrightOrganizeImports fails #3971
Problem: The `pyright.organizeimports` is private, so client:exec_cmd() fails because it refuses to run commands that are not advertised as capabilities. Solution: Call client.request() to side-step the check in client:exec_cmd(). YOLO
Diffstat (limited to '.github')
-rw-r--r--.github/ci/lint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/ci/lint.sh b/.github/ci/lint.sh
index 5b774f92..a6bf8a1e 100644
--- a/.github/ci/lint.sh
+++ b/.github/ci/lint.sh
@@ -53,7 +53,7 @@ _check_lsp_cmd_prefix() {
# Enforce client:exec_cmd().
_check_exec_cmd() {
- local exclude='eslint'
+ local exclude='eslint\|pyright\|basedpyright'
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