LuaLS / LuaLS/vscode-lua

Include LuaCATS library with a dependent extension

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

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

Ngôn ngữ chính
TypeScript
Star
215
Fork
62
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Hi,

I have a set of LuaCATS types for a proprietary SDK: https://github.com/notpeter/playdate-luacats/

I would like to create a simple VSCode extension which depends upon sumneko.lua and bundles those types. Is this possible?

If it is not currently possible, I believe vscode-lua could provide a public API for other extensions by adding additional functions to the object returned from the activate(context: vscode.ExtensionContext) function:

https://github.com/LuaLS/vscode-lua/blob/7b58d50b4ea5feb1a478e6b0c18194ca1d1192a1/client/src/extension.ts#L33-L37

See: VSCode extensions API Documentation.

This exported API could be something simple like library_add(path) so I can provide a path to a subdirectory in my extension bundle for my lua ---@meta files.

I would love to attempt this myself, but I'm still struggling setup a working extension development environment. See: https://github.com/LuaLS/vscode-lua/discussions/125.

Thanks again for creating a great extension.

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

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

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 với client/src/extension.ts quanh các dòng 33-37 và tài liệu về VS Code extensions API, sau đó xem lại cuộc thảo luận extension-development được liên kết để nắm ngữ cảnh thiết lập. Xác định xem một extension phụ thuộc có thể đóng gói các kiểu LuaCATS hay cần một public API; được xem là hoàn tất khi đường dẫn tích hợp được hỗ trợ đã được xác lập và ghi lại.

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, typescript, vscode
Lĩnh vực
tooling
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

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.