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

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

Merged
merged 1 commit into from
Aug 12, 2020
Merged

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

merged 1 commit into from
Aug 12, 2020

Conversation

kittaakos
Copy link
Contributor

@kittaakos kittaakos commented Aug 11, 2020

Closes #8350

Signed-off-by: Akos Kitta [email protected]

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

@kittaakos kittaakos requested a review from akosyakov August 11, 2020 20:42
@@ -20,6 +20,7 @@ import { NpmRegistry, NodePackage, PublishedNodePackage, sortByKey } from './npm
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