LuaLS / LuaLS/lua-language-server
Settings from client and .luarc.json not getting merged
Nessuno ha ancora preso questa issue.
- Lingua principale
- Lua
- Stelle
- 4.4k
- Fork
- 442
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
How are you using the lua-language-server?
NeoVim
Which OS are you using?
Linux
What is the issue affecting?
Other
Expected Behaviour
Global settings from the client and local settings from the .luarc.json file should get merged. In my case I have the following .luarc.json:
{
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json",
"workspace.ignoreDir": ["test/xdg"]
}
There is no workspace.ignoreDir setting in my client config.
Actual Behaviour
The settings from .luarc.json are not applied. I have to add the ignoreDir setting to my client configuration for it to do something.
Reproduction steps
N/A
Additional Notes
I am testing a Neovim plugin (HiPhish/rainbow-delimiters.nvim), and the test setup requires me to place a symlink to the plugin root directory inside on of its sub-directories (rainbow-delimiters). When the language server starts scanning the plugin directory it ends up running in circles. Adding this directory to the ingoreDir list stops the infinite loop and the language server can scan all files normally.
I cannot place all my settings inside the local .luarc.json because the settings for Neovim configuration and plugin development cannot be known ahead of time, they must be generated. I can place the workspace.ignoreDir setting in my own client configuration, but this won't help people who want to contribute to my plugin.
What I need is for the language server to merge both configurations into one. The order should be from least to most significant:
- client configuration
- local configuration
- custom configuration file (maybe?)
Log File
file_home_hiphish_.local_share_nvim_site_pack_my-plugins_start_rainbow-delimiters.nvim.log
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia tracciando il modo in cui il language server carica e combina le impostazioni del client con .luarc.json, concentrandoti su workspace.ignoreDir. Usa i logs allegati per confermare quale configurazione viene applicata e dove si interrompe la combinazione. Il lavoro è completato quando le impostazioni del client e quelle locali seguono la precedenza richiesta e un test di regressione copre workspace.ignoreDir da entrambe le origini.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- lua, neovim
- Ambito
- developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Attiva
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100