Skip to content

GH-8350: Fixed bogus app config defaults.#8355

Merged
kittaakos merged 1 commit intomasterfrom
GH-8350
Aug 12, 2020
Merged

GH-8350: Fixed bogus app config defaults.#8355
kittaakos merged 1 commit intomasterfrom
GH-8350

Conversation

@kittaakos
Copy link
Contributor

@kittaakos kittaakos commented Aug 11, 2020

Closes #8350

Signed-off-by: Akos Kitta kittaakos@typefox.io

What it does

Fixes the bogus default handling for application props.

How to test

  • Delete the applicationName from examples/browser/package.json,
  • yarn --cwd ./examples/browser build,
  • Verify that the applicationName is Eclipse Theia in the generated examples/browser/src-gen/frontend/index.js.

Or verify it with a VS Code extension. See here.

Review checklist

Reminder for reviewers

Closes #8350

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
@kittaakos kittaakos requested a review from akosyakov August 11, 2020 20:42
import { Extension, ExtensionPackage, RawExtensionPackage } from './extension-package';
import { ExtensionPackageCollector } from './extension-package-collector';
import { ApplicationProps } from './application-props';
const merge = require('deepmerge');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does not seem to be type safe

Copy link
Member

@akosyakov akosyakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it works, thanks! I am not sure though about how deepmerge works under the hood: https://github.com/eclipse-theia/theia/pull/8355/files#r469011994

@akosyakov akosyakov added the core issues related to the core of the application label Aug 12, 2020
@kittaakos kittaakos merged commit 9c2af7c into master Aug 12, 2020
@kittaakos kittaakos deleted the GH-8350 branch August 12, 2020 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core issues related to the core of the application

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FrontendApplicationConfigProvider.get returns a configuration without the application name

2 participants