LuaLS / LuaLS/lua-language-server

Feature Request: Language server to be recursive regardless of trailing slashes

Đang mở
#2,039 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

enhancement
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ả

When executing the language server binary with --check [path] flag, it will only diagnose the immediate child elements of the given path if it contains a trailing slash
Currently, if I want to diagnose a project different subdirectories via the CLI, e.g. the lua-language-server itself, I'll need a script that calls the binary for every subdirectory of the project to get a full report - and as a result I get a check.json for every subdirectory with diagnosed problems. Edit: Just have to make sure the path format is correct.

So for example, I'd like to call something like
.\language-server\bin\lua-language-server.exe --check .\language-server\ --recursive
and have all the source files in subdirectories checked as well.
That way it might also be possible to have a single check.json as a report as well.

The correct enhancement to propose is to handle things like a trailing slash in the path the same

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu từ điểm vào --check [path] của language server và theo dõi cách các đường dẫn có dấu gạch chéo ở cuối được xử lý. So sánh việc chẩn đoán đệ quy đối với các đường dẫn tương đương, sau đó xác minh rằng các đầu vào có và không có dấu gạch chéo ở cuối tạo ra cùng một báo cáo đầy đủ.

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
cli
Loại issue
Tính năng
Độ 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
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.