github / github/copilot-language-server-release

Guidance on pattern to improve context for completions in an IDE

Đang mở
#24 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
290
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## Background

Our IDE has an opt-in feature where it will tell copilot about all files in the current project by doing `textDocument/didOpen` on them. This could potentially be dozens, possibly even hundreds of files, given the nature of the projects in real-world use.

This was originally implemented using the vim copilot plugin, now switched to using `copilot-language-server`.

## Question

Is this a "Good Idea"? Will it actually improve completion suggestions by providing more context, or will it quickly hit some internal limit?

When I switched this to `copilot-language-server` I also implemented setting `workspaceFolders` to true, and pass the root folder of the project as the workspace folder; is that accomplishing anything in terms of improving awareness of other files in the project (i.e. does this make the "pretend to open all files" approach redundant)?

Thanks!

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

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

Hướng nghiên cứu

Review the vim copilot plugin behavior, the switch to copilot-language-server, and the workspaceFolders and textDocument/didOpen handling described in the issue. Determine whether opening every project file improves completion context or reaches limits, then document the recommended pattern and whether workspaceFolders makes that approach redundant.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
ai, developer-experience, tooling
Loại issue
Tài liệu
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
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

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.