Skip to content

[core] Consider getting the schemastore.azurewebsites.net/api/json/catalog.json at build time #11881

@kittaakos

Description

@kittaakos

Feature Description:

Whenever I start Theia from the sources (electron, browser) or TheiaBluePrint (1.31.1 (1.31.1.85)), getting the default preference schema fails. The fetched JSON size has increased during the years, and getting the schema never completes in 500ms.

From the sources:

logger-protocol.ts:113 2022-11-18T13:42:37.774Z root ERROR DefaultJsonSchemaContribution.registerSchemas is taking more than 500.0 ms, new schemas are ignored.

From the bundled electron app:

logger-protocol.ts:113 2022-11-18T13:48:50.330Z root ERROR h.registerSchemas is taking more than 500.0 ms, new schemas are ignored.

Either increase the timeout or get the schema at build time. The current implementation makes no sense. Note that getting the schema at build time has one drawback, the most recent schema won't be fetched on app load, so it could be outdated. In one of the downstream projects, we get the schema at build time, which works well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    coreissues related to the core of the applicationproposalfeature proposals (potential future features)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions