LuaLS / LuaLS/lua-language-server
[Bug]: Addon Not Working
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?
Visual Studio Code Extension (sumneko.lua)
Which OS are you using?
Windows
What is the issue affecting?
Annotations, Libraries
Expected Behaviour
The addon's definitions and comments should be displayed.
Actual Behaviour
The library's comments above functions are being displayed.
Reproduction steps
-
Download and add this for an addon:
-
Download batteries and place them inside of
libraries/batteries:

-
Add
require("libraries.batteries"):export()to the top of your lua file -
Hovering
:export()shows the library's documented info and not from the addon
Additional Notes
I might have the addon set up incorrectly, but I am genuinely unsure. I've looked at a few of the addon samples and instructions, but can't seem to entirely figure it out properly. My settings.json for the files I'm testing with looks like the following:
{
"Lua.workspace.library": [
"G:/GitHub/Lua/batteries/library/batteries"
]
}
Log File
No response
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 so sánh thiết lập addon với các mẫu addon và hướng dẫn được tham chiếu, sau đó tái hiện hành vi hover trong tiện ích mở rộng VS Code bằng batteries và cấu hình settings.json được hiển thị. Kiểm tra xem đường dẫn addon hoặc library có được tải như mong đợi hay không. Hoàn tất khi hover trên :export() hiển thị định nghĩa và các chú thích của addon thay vì tài liệu của library.
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, vscode
- Lĩnh vực
- devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100