LuaLS / LuaLS/lua-language-server
Plugin ResolveRequire is getting the wrong URI
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/Linux
What is the issue affecting?
Plugins
Expected Behaviour
Over the plugins page it seems to me like ResolveRequire first parameter is the current file the require is being typed at.
Actual Behaviour
But in reality it seems to be the workspace URI, not the file.
Reproduction steps
- Make a new plugin
- Paste the same code shown in screenshot
- Type out some
requirestatement, you will see the URI of the workspace in the output instead of therequirestatement file.
Additional Notes
See https://github.com/LuaLS/LuaLS.github.io/issues/48
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 từ entry point ResolveRequire của plugin và so sánh URI được truyền trong khi nhập câu lệnh require với hành vi được mô tả trên trang plugins. Tái hiện vấn đề trong extension VS Code bằng ví dụ plugin trong ảnh chụp màn hình; hoàn tất khi callback nhận URI tệp của câu lệnh require thay vì URI workspace.
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
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 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
- 45/100