-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
Code editor
Vim 9.2.38
Platform
Linux 6.18.9-arch1-2
Version
5.6.0
What steps will reproduce the bug?
Using https://github.com/yegappan/lsp and a wrapper to log the LSP communications
LOG="$HOME/bash-lsp.log"
echo "=== START $(date -Is) ===" > "$LOG"
exec 3>&1
# shellcheck disable=
{
bash-language-server "$@" 2>>"$LOG" \
| tee -a "$LOG" >&3
} < <(tee -a "$LOG")
I notice messages for 50 files when only 1 is open
Content-Length: 182
{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":2,"message":"14:54:48.356 WARNING ⛔️ file:///home/user/scripts/not_open.sh line 13: failed to resolve path"}}
I read
https://github.com/bash-lsp/bash-language-server/blob/main/server/src/config.ts#L6
and can see it is sent:
Content-Length: 3549
{"method":"initialize","jsonrpc":"2.0","id":1,"params":{"rootUri":"file:///home/user/scripts/","initializationOptions":{"backgroundAnalysisMaxFiles":0}...
but the issue persists.
How often does it reproduce? Is there a required condition?
every time.
What is the expected behavior?
only scan the open file
What do you see instead?
all files in the dir are scanned
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels