Class: FakeConfiguration
libs/common/ide/fake/FakeConfiguration.FakeConfiguration
Implements
Constructors
constructor
• new FakeConfiguration()
Defined in
libs/common/ide/fake/FakeConfiguration.ts:24
Properties
mocks
• Private
mocks: CursorlessConfiguration
Defined in
libs/common/ide/fake/FakeConfiguration.ts:19
notifier
• Private
notifier: Notifier
<[]>
Defined in
libs/common/ide/fake/FakeConfiguration.ts:18
onDidChangeConfiguration
• onDidChangeConfiguration: (listener
: Listener
<[]>) => Disposable
Type declaration
▸ (listener
): Disposable
Register to be notified when notifyListeners is called
Parameters
Name | Type | Description |
---|---|---|
listener | Listener <[]> | A function to be called when notifyListeners is called |
Returns
A function that can be called to unsubscribe from notifications
Implementation of
Configuration.onDidChangeConfiguration
Defined in
libs/common/ide/fake/FakeConfiguration.ts:43
scopes
• Private
scopes: ConfigurationScopeValues
[] = []
Defined in
libs/common/ide/fake/FakeConfiguration.ts:22
Methods
getOwnConfiguration
▸ getOwnConfiguration<Path
>(path
, scope?
): GetFieldType
<CursorlessConfiguration
, Path
>
Returns a Cursorless configuration value. Dots are accepted in
{@link path}, and are interpreted as child access, eg
experimental.snippetsDir
.
Type parameters
Name | Type |
---|---|
Path | extends Paths <CursorlessConfiguration , undefined , undefined > |
Parameters
Name | Type |
---|---|
path | Path |
scope? | ConfigurationScope |
Returns
GetFieldType
<CursorlessConfiguration
, Path
>
Implementation of
Configuration.getOwnConfiguration
Defined in
libs/common/ide/fake/FakeConfiguration.ts:28
mockConfiguration
▸ mockConfiguration<T
>(key
, value
): void
Type parameters
Name | Type |
---|---|
T | extends keyof CursorlessConfiguration |
Parameters
Name | Type |
---|---|
key | T |
value | CursorlessConfiguration [T ] |
Returns
void
Defined in
libs/common/ide/fake/FakeConfiguration.ts:45
mockConfigurationScope
▸ mockConfigurationScope(scope
, values
, noNotification?
): void
Parameters
Name | Type | Default value |
---|---|---|
scope | ConfigurationScope | undefined |
values | Partial <CursorlessConfiguration > | undefined |
noNotification | boolean | false |
Returns
void
Defined in
libs/common/ide/fake/FakeConfiguration.ts:53