File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : mv3_extension
2
2
publish_to : none
3
- version : 2.1.2
3
+ version : 2.1.3
4
4
homepage : https://github.com/dart-lang/webdev
5
5
description : >-
6
6
A Chrome extension for Dart debugging.
Original file line number Diff line number Diff line change @@ -205,6 +205,10 @@ Future<void> _sendInspectorUrl({String? appId}) async {
205
205
}
206
206
207
207
int _tabId (String appId) {
208
+ // The suffix "-f" is used to tell Cider that this is a Flutter app.
209
+ if (appId.endsWith ('-f' )) {
210
+ appId = appId.substring (0 , appId.length - 2 );
211
+ }
208
212
final tabId = appId.split ('-' ).last;
209
213
return int .parse (tabId);
210
214
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Dart Debug Extension" ,
3
- "version" : " 2.1.2 " ,
3
+ "version" : " 2.1.3 " ,
4
4
"manifest_version" : 3 ,
5
5
"devtools_page" : " static_assets/devtools.html" ,
6
6
"action" : {
Original file line number Diff line number Diff line change @@ -90,9 +90,11 @@ Future<bool> _insertAppId() async {
90
90
final debugInfo = await _fetchDebugInfo (tabId);
91
91
if (debugInfo == null ) return false ;
92
92
final isInternalBuild = debugInfo.isInternalBuild ?? false ;
93
+ final isFlutterApp = debugInfo.isFlutterApp ?? false ;
93
94
final workspaceName = debugInfo.workspaceName;
94
95
if (isInternalBuild && workspaceName != null ) {
95
- _appId = '$workspaceName -$tabId ' ;
96
+ // The suffix "-f" is used to tell Cider that this is a Flutter app.
97
+ _appId = '$workspaceName -$tabId ${isFlutterApp ? '-f' : '' }' ;
96
98
final appIdSpan = document.getElementById (_appIdSpanId) as SpanElement ;
97
99
appIdSpan.setInnerHtml (_appId);
98
100
return true ;
Original file line number Diff line number Diff line change @@ -515,6 +515,7 @@ ${globalToolConfiguration.loadStrategy.loadModuleSnippet}("dart_sdk").developer.
515
515
throw RPCError (
516
516
method,
517
517
decodedResponse['code' ] as int ,
518
+ // ignore: avoid-unnecessary-type-casts
518
519
decodedResponse['message' ] as String ,
519
520
decodedResponse['data' ] as Map ,
520
521
);
You can’t perform that action at this time.
0 commit comments