redhat-developer / redhat-developer/vscode-java

Exclude default folders from file watching

Đang mở
#3,703 3 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ả

In my scenario I'm working with Gradle projects, but the context should also apply to Maven and normal project.

After opening project it would be nice if .gradle/** and build/** were automatically excluded from fileWatch by this extension, for Maven I believe it's target/**. Whether to exclude bin/** is up to you, but for me it makes no sense to watch it too, since IDE should be aware of its own folders?
Obviously these folders are configurable so mby this should be also some kind of config based on type of project import?

The point of this is to prevent unnecessary autoBuild triggers and similar, which may even result in permanent refresh loop like this

Environment
  • note: env should be irrelevant for this issue
  • Operating System: Win 11 pro, latest update
  • JDK version: 21
  • Visual Studio Code version:
  • Java extension version:
Steps To Reproduce
  1. Open Gradle project
  2. Notify any file in eg. build
  3. See extension being notified of file change
Current Result

Entire project being file watched, causing unnecessary eclipse-jdtls trigger

Expected Result

Don't watch files that aren't "source" relevant

Additional Informations

May provide my .vscode/settings.json 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 hành vi theo dõi tệp với một dự án Gradle và một thay đổi bên dưới build/; so sánh với hành vi mong đợi đối với .gradle/ và Maven target/**. Truy vết cấu hình theo dõi tệp của extension và xác định cách kiểu import dự án hoặc cấu hình người dùng nên cung cấp các mục loại trừ. Được xem là hoàn tất khi các thư mục được tạo không còn kích hoạt thông báo không cần thiết của extension hoặc hoạt động auto-build, trong khi các thay đổi đối với tệp nguồn vẫn được theo dõi.

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, tooling
Loại issue
Tính năng
Độ 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.