redhat-developer / redhat-developer/vscode-java

Code completion does not insert parentheses and parameter suggestions

Đang mở
#3,701 6 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
2.3k
Fork
546
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

Code completion fails to insert parantheses and parameter suggestions when invoked on a type for the first time.

Environment
  • Operating System: Ubuntu 22.04.4 LTS
  • JDK version: java-21-openjdk-amd64
  • Visual Studio Code version: 1.91.0
  • Java extension version: 1.32.0
Steps To Reproduce
  1. Open minimal Java Maven Project (Sample GitHub Repo)
  2. Open Java file App.java
  3. (Make sure that Language Server workspace is cleaned)
  4. In line 19, enter set. and wait for completion list to appear
  5. Enter clo to filter completion list entries
  6. Hit <Enter> to select entry clone() from completion list
Current Result

set.clo gets expanded to set.clone

Expected Result

set.clo gets expanded to set.clone()

Additional Informations
  • When completion item is focussed, completion item details (JavaDoc) cannot be displayed.
  • Language client logs report an error every time the cursor keys are used to navigate the completion list (client.log)
  • When completion item is selected (hitting <Enter>), language server reports an error (server.log)
  • When triggering the completion list a second time, completion works as expected
  • Reproduction can be repeated after cleaning Java Language Server workspace
  • When reproducing the issue, I only had these extensions enabled:
    Selection_180

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

Tái hiện vấn đề trong dự án Java Maven tối giản bằng cách mở App.java, dọn dẹp workspace của Language Server và chọn clone() sau khi lọc danh sách hoàn thành. Đọc client.log và server.log cùng với lần gọi hoàn thành đầu tiên. Hoàn tất khi lần gọi đầu tiên chèn clone(), hiển thị thông tin chi tiết về hoàn thành và không còn báo cáo các lỗi điều hướng hoặc lựa chọn được mô tả.

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

Đánh giá

Công nghệ
java, vscode
Lĩnh vực
developer-experience, tooling
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
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.