File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 19
19
- Add ` emitDebugEvents ` argument to ` Dwds.start ` to suppress emitting debug
20
20
events from the injected client.
21
21
- Replace ` sdkRoot ` parameter by ` sdkDir ` in ` ExpressionCompilerService ` .
22
+ - Adds an additional parameter to launch Dart DevTools in the same window as
23
+ the connected Dart app.
22
24
23
25
## 11.5.1
24
26
Original file line number Diff line number Diff line change @@ -110,8 +110,11 @@ class Dwds {
110
110
bool useSseForInjectedClient,
111
111
UrlEncoder urlEncoder,
112
112
bool spawnDds,
113
+ // TODO(elliette): DevTools is inconsistently capitalized throughout this
114
+ // file. Change all occurances of devtools/Devtools to devTools/DevTools.
113
115
bool enableDevtoolsLaunch,
114
116
DevtoolsLauncher devtoolsLauncher,
117
+ bool launchDevToolsInNewWindow,
115
118
Uri sdkDir,
116
119
Uri librariesPath,
117
120
bool emitDebugEvents,
@@ -123,6 +126,7 @@ class Dwds {
123
126
useSseForDebugBackend ?? = true ;
124
127
useSseForInjectedClient ?? = true ;
125
128
enableDevtoolsLaunch ?? = true ;
129
+ launchDevToolsInNewWindow ?? = true ;
126
130
spawnDds ?? = true ;
127
131
globalLoadStrategy = loadStrategy;
128
132
emitDebugEvents ?? = true ;
@@ -183,6 +187,7 @@ class Dwds {
183
187
expressionCompiler,
184
188
injected,
185
189
spawnDds,
190
+ launchDevToolsInNewWindow,
186
191
);
187
192
188
193
return Dwds ._(
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ class DevHandler {
63
63
final bool _useSseForInjectedClient;
64
64
final bool _serveDevTools;
65
65
final bool _spawnDds;
66
+ final bool _launchDevToolsInNewWindow;
66
67
final ExpressionCompiler _expressionCompiler;
67
68
final DwdsInjector _injected;
68
69
@@ -87,7 +88,8 @@ class DevHandler {
87
88
this ._serveDevTools,
88
89
this ._expressionCompiler,
89
90
this ._injected,
90
- this ._spawnDds) {
91
+ this ._spawnDds,
92
+ this ._launchDevToolsInNewWindow) {
91
93
_subs.add (buildResults.listen (_emitBuildResults));
92
94
_listen ();
93
95
if (_extensionBackend != null ) {
@@ -525,7 +527,7 @@ class DevHandler {
525
527
if (! _serveDevTools) return ;
526
528
emitEvent (DwdsEvent .devtoolsLaunch ());
527
529
await remoteDebugger.sendCommand ('Target.createTarget' , params: {
528
- 'newWindow' : true ,
530
+ 'newWindow' : _launchDevToolsInNewWindow ,
529
531
'url' : Uri (
530
532
scheme: 'http' ,
531
533
host: _devTools.hostname,
You can’t perform that action at this time.
0 commit comments