[FEATURE]: code action to fix spelling of all occurences of the symbol?
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 24/100
Hướng nghiên cứu
Start by reading the code action implementation and the discussion in issue #150; the issue does not name relevant files or tests. Check how Codebook represents spelling corrections and whether the LSP integration supports symbol rename actions. Done means a correction can offer a rename for all occurrences when another LSP provides that capability.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Description
#150 explains why Codebook typically flags only definitions - this makes a lot of sense.
Wondering then if it would be possible to have a code action that uses another LSP, if present, to rename symbol - not just change this specific spelling. No idea though if "code action calling the code action of another LSP" is technically doable, and / or if this is somehow standardized (do LSP have a standard "rename symbol" tag or name on the corresponding code action? or is it free for all?).
Use Case
def this_hhas_a_typo():
print("typo!")
this_hhas_a_typo()
if the typo is highlighted in the def line, it would be great to provide a code action to "rename all symbol occurences"; this is typically provided by space-r in helix across programming language LSPs, so I suppose this may be somehow standardized?
Proposed Solution
If possible, have a "mirror" code action for each possible spelling correction that is "replace all symbols by ..." instead of "replace by ..."
Alternative Solutions
For now the user can get the diagnostic, decide what to use, and apply the LSP-based symbol rename themselves by typing themselves what to replace with.
Examples
No response
Additional Context
No response
- Ngôn ngữ chính
- Rust
- Star
- 925
- Fork
- 59
- Merge trung bình
- 53 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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.
Issue khác của blopker/codebook
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 43/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement Zed issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
blopker/codebook#310 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[FEATURE]: Per-language `words`Đang mởenhancement workaround
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
blopker/codebook#297 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của blopker/codebook
Issue tương tự
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
polete-bermejo/floord#21 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
gbif/name-parser-rust#259 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nledford/Ladderback#1171 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: LANGSMITH_SAMPLING_RATE ignores fractional values (isdigit check), traces 100% of requestsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày