redhat-developer / redhat-developer/vscode-java

Bug: Formatter causing some lines get erased

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

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

formatter
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ả

I love to use VSC Java plugin but I had so much pain working with java now.
The reason I like vscode now only for the ui but this plugin is very customisable like a way to line up curly bracket.
Now the "Format Document" is glitchy, it somehow erased some part of the code when I indent it.
I'm not sure if it's related to any tokens because when this happens, if I didn't remember wrongly, it caused the semantic highlight changed too. But then the semantic tokens bug were patched but this issue persist (still there).

Environment
Operating System: Windows 10
JDK version: 14
Visual Studio Code version: 1.60.0 before update also the same
Java extension version: -
Steps To Reproduce
Just edit the code and with comments, on performing indentation, it will cause glitches
This happens when I start typing code for long time.
semantic token

I don't know if this info help, since this plugin doesn't have built-in option to line up braces plus the default switch-case indentation is weird, so I use this profile:
configuration.zip

Could it be this profile is causing conflict? I'd be glad to provide more information if needed.

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

Bắt đầu bằng cách tái hiện Format Document trên Windows 10 với JDK 14, các chú thích Java và configuration.zip được cung cấp, đặc biệt là sau khi nhập liệu trong thời gian dài. So sánh kết quả với tô sáng ngữ nghĩa và kiểm tra xem các dòng mã nguồn có bị xóa hay không; được coi là hoàn tất khi việc định dạng bảo toàn toàn bộ mã và giữ nguyên phần tô sáng.

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
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
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.