redhat-developer / redhat-developer/vscode-java
Status bar keeps showing "100% Starting Java Language Server"
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ả
The language server has been launched successfully, and all features are ready, but the message is pinned on the status bar. It's probably a racing condition, and it's not stably reproducible.
I've done some investigation to print out the notifications, and I find the sequence on my machine is usually as following:
[Starting] 30% Starting Java Language Server
[Starting] 35% Starting Java Language Server
[Starting] 100% Starting Java Language Server
[Starting] 100% Starting Java Language Server
[Started] Ready
[Starting] 100% Starting Java Language Server
You may notice that after a "started" notification, it still receives a "starting" notification.
But when I met the issue, the log looks like the following, indicating that previous notifications are not received by the callback.
[Starting] 100% Starting Java Language Server
So I guess if it's because: immediately after the languageClient onReady, the previous notifications have been sent, before the callback completes the registration.
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.
Hướng nghiên cứu
Bắt đầu tại src/extension.ts, ở các dòng 115-147, và lần theo callback languageClient.onReady cùng phần xử lý thông báo khởi động. Tái hiện hoặc kiểm tra chuỗi thông báo đã được báo cáo, sau đó xác nhận rằng thanh trạng thái không còn giữ ở 100% Starting sau khi máy chủ báo Ready.
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, typescript
- Lĩnh vực
- devtools
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100