Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2a00d6c

Browse files
fixup! chore: use theia@1.46.1
Use changes from #2362 and rebase on main branch
1 parent 0f6833e commit 2a00d6c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,16 @@ export class ElectronMainApplication extends TheiaElectronMainApplication {
212212
this._appInfo = updateAppInfo(this._appInfo, this._config);
213213
this.hookApplicationEvents();
214214
this.showInitialWindow(undefined);
215-
const port = await this.startBackend();
215+
const [port] = await Promise.all([
216+
this.startBackend(),
217+
app.whenReady(),
218+
]);
216219
this.startContentTracing();
217220
this._backendPort.resolve(port);
218-
await app.whenReady();
219-
await this.attachElectronSecurityToken(port);
220-
await this.startContributions();
221+
await Promise.all([
222+
this.attachElectronSecurityToken(port),
223+
this.startContributions(),
224+
]);
221225
this.handleMainCommand({
222226
file: args.file,
223227
cwd,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /