LuaLS / LuaLS/lua-language-server
Unable to ignore applying only one library
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?
Libraries
Expected Behaviour
When multiple libraries are detected, the user should be able to tell the server to stop asking to apply a specific library, and continue receiving suggestions for other libraries.
Actual Behaviour
Once the user selects “Don't show again”, workspace.checkThirdParty is set to false, preventing any suggestions from appearing.
Reproduction steps
- Enter the following in a file to trigger library detection:
local assert = require("luassert") resty.a love.a - When the “Apply library” popup appears, press “Don't show again”
- Try to automatically apply one of the other libraries automatically.
Additional Notes
A similar issue was resolved in v3.6.0 which allowed the server to continue recommending libraries when one was applied, but this issue is about when a user does not apply the suggested library.
Maybe it would make sense to create a new setting called workspace.libraryIgnore that is an array of ignored libraries. Then workspace.checkThirdParty can remain for backwards compatibility and so all suggestions can be disabled.
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 lần theo thiết lập workspace.checkThirdParty và luồng “Don't show again” được mô tả trong issue. Tái hiện ví dụ luassert, resty và love trên Windows, sau đó xác minh rằng việc từ chối một thư viện chỉ ẩn thư viện đó, trong khi các đề xuất cho những thư viện khác vẫn khả dụng.
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
- devtools
- Loại issue
- Tính năng
- Độ 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