LuaLS / LuaLS/lua-language-server
Settings from client and .luarc.json not getting merged
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Lua
- Star
- 4.4k
- Fork
- 442
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách language server tải và kết hợp các cài đặt của client với .luarc.json, tập trung vào workspace.ignoreDir. Sử dụng các logs đính kèm để xác nhận cấu hình nào được áp dụng và việc hợp nhất dừng ở đâu. Được xem là hoàn tất khi các cài đặt của client và cục bộ tuân theo thứ tự ưu tiên được yêu cầu, đồng thời một regression test bao phủ workspace.ignoreDir từ cả hai nguồn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- lua, neovim
- Lĩnh vực
- developer-experience, tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100