Skip to content

Commit b947be0

Browse files
author
Akos Kitta
committed
Open devtools when tracing.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 05af641 commit b947be0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.vscode/launch.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"--plugins=local-dir:../plugins",
2222
"--hosted-plugin-inspect=9339",
2323
"--nosplash",
24-
"--content-trace"
24+
"--content-trace",
25+
"--open-devtools"
2526
],
2627
"env": {
2728
"NODE_ENV": "development"

arduino-ide-extension/src/electron-main/theia/electron-main-application.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
327327
): Promise<BrowserWindow> {
328328
const electronWindow = await super.createWindow(options);
329329
if (APP_STARTED_WITH_DEV_TOOLS) {
330-
electronWindow.webContents.openDevTools({ mode: 'undocked' });
330+
electronWindow.webContents.openDevTools();
331331
}
332332
this.attachListenersToWindow(electronWindow);
333333
return electronWindow;

0 commit comments

Comments
 (0)