Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Don't rely on IDE=VSCode in querystring for behaviour

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

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

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
dart

Hướng nghiên cứu

Rà soát việc xử lý IDE trong packages/devtools_app/lib/src/shared/development_helpers.dart, packages/devtools_app/lib/src/shared/preferences/preferences.dart và packages/devtools_app/lib/src/standalone_ui/ide_shared/property_editor/property_editor_panel.dart. Trước tiên, hãy theo dõi cách các giá trị IDE đi vào chuỗi truy vấn và kiểm thử hành vi fallback của WASM. Công việc được xem là hoàn tất khi bộ lọc khảo sát, thông báo fallback và liên kết tài liệu của trình chỉnh sửa thuộc tính hoạt động chính xác cho VS Code, Antigravity, Cursor và các biến thể IDE khác.

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

Mô tả

ide-integration ide: vs-code P1

https://github.com/Dart-Code/Dart-Code/issues/5970 is a request to change the values pass in the querystring passed to DevTools to include the proper IDE name and not hard-coded values like "VSCode" (which prevents distinguishing VS Code forks using the same extension, like Antigravity or Cursor).

However, there are some places that currently assume "VSCode" here in DevTools that I think require reviewing first (or, we need to pass two values).

  1. Survey IDE filters
  2. WASM/JS fallback message
  3. Property editor documentation link

1. Survey IDE Filters

https://github.com/flutter/devtools/blob/6046c5bef397cbac6eb9e5d535436ef2b3bb6dbb/packages/devtools_app/lib/src/shared/development_helpers.dart#L229-L231

I don't know if this is used, but if it is, it would need to cover each of the variations of editors now. I think we could either:

  1. Update this comment to mention this is based on DASH__IDE_NAME and include updated examples ("Visual Studio Code", "Antigravity", "Cursor")
  2. Pass two values in querystring, DASH__IDE_NAME and also DASH__TOOL (or DASH__PLUGIN_NAME) which are constant across different IDE flavours using the same plugin/extension

2. WASM/JS fallback message

https://github.com/flutter/devtools/blob/6046c5bef397cbac6eb9e5d535436ef2b3bb6dbb/packages/devtools_app/lib/src/shared/preferences/preferences.dart#L239-L250

It controls whether to show a message if the wasm version fails. I'm not sure if this is necessary anymore, as I think there were WASM changes to not require COI? If so, this code could probably just be deleted (and if not, I think won't cause any problems). Needs testing though.

3. Property editor documentation link

https://github.com/flutter/devtools/blob/6046c5bef397cbac6eb9e5d535436ef2b3bb6dbb/packages/devtools_app/lib/src/standalone_ui/ide_shared/property_editor/property_editor_panel.dart#L172-L179

If IDE is not exactly "VSCode" this will link to the Android Studio docs.

Ngôn ngữ chính
Dart
Star
1.7k
Fork
405
Merge trung bình
4 ngày 21 giờ
Pull request đã merge (30 ngày)
15

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.

Issue khác của flutter/devtools

Tất cả issue của flutter/devtools

Issue tương tự

Thêm issue về Dart

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.