Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve frontend startup performance #12936

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
## v1.42.0

- [core] fixed logger level propagation when log config file changes at runtime [#12566](https://github.com/eclipse-theia/theia/pull/12566) - Contributed on behalf of STMicroelectronics
- [core] improve frontend startup time [#12936](https://github.com/eclipse-theia/theia/pull/12936) - Contributed on behalf of STMicroelectronics
- [vscode] stub TestController invalidateTestResults [#12944](https://github.com/eclipse-theia/theia/pull/12944) - Contributed by STMicroelectronics
- [vscode] support iconPath in QuickPickItem [#12945](https://github.com/eclipse-theia/theia/pull/12945) - Contributed by STMicroelectronics
- [vsx-registry] added a hint to extension fetching ENOTFOUND errors [#12858](https://github.com/eclipse-theia/theia/pull/12858) - Contributed by STMicroelectronics
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/browser/common-frontend-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ export class CommonFrontendContribution implements FrontendApplicationContributi
protected pinnedKey: ContextKey<boolean>;

async configure(app: FrontendApplication): Promise<void> {
// FIXME: This request blocks valuable startup time (~200ms).
const configDirUri = await this.environments.getConfigDirUri();
// Global settings
this.encodingRegistry.registerOverride({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,8 @@ export class DebugFrontendApplicationContribution extends AbstractViewContributi

this.schemaUpdater.update();
this.configurations.load();
await this.breakpointManager.load();
await this.watchManager.load();
this.breakpointManager.load();
this.watchManager.load();
}

onStop(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export class EditorNavigationContribution implements Disposable, FrontendApplica
}

async onStart(): Promise<void> {
await this.restoreState();
this.restoreState();
}

onStop(): void {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export class TerminalFrontendContribution implements FrontendApplicationContribu
}

async onStart(app: FrontendApplication): Promise<void> {
await this.contributeDefaultProfiles();
this.contributeDefaultProfiles();

this.terminalPreferences.onPreferenceChanged(e => {
if (e.preferenceName.startsWith('terminal.integrated.')) {
Expand Down
Loading