Skip to content

Commit 42e21c2

Browse files
author
Benjamin Pasero
committed
electron - configure to disable LayoutNG (workaround for microsoft#88873)
1 parent d8e7eb3 commit 42e21c2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ app.once('ready', function () {
8282
traceOptions: args['trace-options'] || 'record-until-full,enable-sampling'
8383
};
8484

85-
contentTracing.startRecording(traceOptions, () => onReady());
85+
contentTracing.startRecording(traceOptions).finally(() => onReady());
8686
} else {
8787
onReady();
8888
}
@@ -162,6 +162,9 @@ function configureCommandlineSwitchesSync(cliArgs) {
162162
app.commandLine.appendSwitch('js-flags', jsFlags);
163163
}
164164

165+
// TODO@Ben TODO@Deepak Electron 7 workaround for https://github.com/microsoft/vscode/issues/88873
166+
app.commandLine.appendSwitch('disable-features', 'LayoutNG');
167+
165168
return argvConfig;
166169
}
167170

0 commit comments

Comments
 (0)