Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for getting value from workspace preference
Browse files Browse the repository at this point in the history
Signed-off-by: Balaji V <kuttibalaji.v6@gmail.com>
balajiv113 committed Mar 1, 2021
1 parent f8bcc19 commit d10e680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/monaco/src/browser/monaco-frontend-module.ts
Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@ export function createMonacoConfigurationService(container: interfaces.Container

_configuration.getValue = (section, overrides) => {
const overrideIdentifier = overrides && 'overrideIdentifier' in overrides && overrides['overrideIdentifier'] as string || undefined;
const resourceUri = overrides && 'resource' in overrides && !!overrides['resource'] && overrides['resource'].toString();
const resourceUri: string | undefined = overrides && 'resource' in overrides && !!overrides['resource'] ? overrides['resource'].toString() : undefined;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const proxy = createPreferenceProxy<{ [key: string]: any }>(preferences, preferenceSchemaProvider.getCombinedSchema(), {
resourceUri, overrideIdentifier, style: 'both'

0 comments on commit d10e680

Please sign in to comment.