2
>
* Copyright (c) Microsoft Corporation. All rights reserved.
3
>
* Licensed under the MIT License. See License.txt in the project root for license information.
4
>
*--------------------------------------------------------------------------------------------*/
5
>
6
>
import { DisposableStore, IDisposable } from '../../../base/common/lifecycle.js';
7
>
import { DebugLocation, derivedOpts, IObservable, IReader, observableFromEvent, observableFromEventOpts } from '../../../base/common/observable.js';
8
>
import { IConfigurationService } from '../../configuration/common/configuration.js';
9
>
import { ContextKeyValue, IContextKeyService, RawContextKey } from '../../contextkey/common/contextkey.js';
10
>
11
>
/** Creates an observable update when a configuration key updates. */
12
>
export function observableConfigValue<T>(
13
key: string,
14
defaultValue: T,