LuaLS / LuaLS/lua-language-server
Annotation warnings are bleeding over from other workspaces
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, Diagnostics/Syntax Checking
Expected Behaviour
Annotation warning from another workspace do not show up in the current workspace.
Actual Behaviour
Workspace structure is as follows
\Projects
-- Annotations (separate workspace, VS Code has setting "Lua.workspace.library" referencing this folder)
-- Project 1 (separate workspace)
Annotations are over 100 files defining the API surface of a hosting program. In the workspace for the annotations, the diagnostic for missing-return is turned off for that workspace. This is to allow for the annotation of methods on the API via function nomenclature. Naturally, these functions do not have any implementation and the diagnostic warning appears.
When the annotations are referenced (---@type) in another project workspace (e.g., Project 1 above), these diagnostic warnings can appear in the workspace for Project 1. Clicking the warning in the Problems area to open the file and then closing the file dismisses the warnings for that file.
Reproduction steps
There are no specific "steps" to recreate this problem.
Additional Notes
No response
Log File
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 kiểm tra log đính kèm và tái hiện bố cục được mô tả với một Annotations workspace được tham chiếu thông qua Lua.workspace.library và một workspace Project 1 riêng biệt. Truy tìm lý do các chẩn đoán về giá trị trả về bị thiếu vượt qua ranh giới workspace; hoàn tất khi các cảnh báo bị tắt trong Annotations workspace không xuất hiện trong Project 1 mà không yêu cầu mở rồi đóng tệp.
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
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100