flutter / flutter/devtools

Consider supporting an online "upgrade" experience when embedded in an IDE

オープン
#8,229 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
ide-integration P2
主要言語
Dart
スター
1.7k
フォーク
404
平均マージ
6日 17時間
マージ済み PR(30日)
18

説明

In this scenario, I opened the Performance page in VS code when no debug sessions were available. This opened up the Performance screen for the "disconnected" state which allows the user to load offline data. I later ran a debug session, and still had the "offline" version of the Performance page.

It would be nice if a small banner popped up at the top of my performance tool that said something like
"A debug session is now available. Would you like to reload this tool and connect to it?". At that point the user could choose whether to ignore the message and continue looking at the offline data or reload the tool with the new app connection.

If the user chose to reload, DevTools could refresh itself so that the embedded IDE view would be reloaded. This would require the IDE to send an event to DevTools debug sessions change, and I think this event already exists because of the Flutter sidebar.

CC @DanTup @helin24

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Performance ページの切断状態とオフラインデータ状態から始め、次に Flutter サイドバーに既存するデバッグセッション変更イベントをたどります。埋め込み IDE から、セッションが利用可能になったときに DevTools へ通知する方法と、ユーザーが制御する再読み込みの選択が現在のビューにどう影響すべきかを確認します。ユーザーが再読み込みを選択しない限りオフラインデータを破棄せずに遷移が処理されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
dart, flutter, vscode
領域
developer-experience, tooling
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。