Class: FakeHats
libs/common/ide/fake/FakeHats.FakeHats
Implements
Constructors
constructor
• new FakeHats()
Properties
enabledHatStyles
• enabledHatStyles: HatStyleMap
= {}
Mapping from enabled hat styles to their penalties. Each hat style represents a combination of hat style components (eg color, shape, etc). So a hat style might be "green-curve".
Implementation of
Defined in
libs/common/ide/fake/FakeHats.ts:10
isEnabled
• isEnabled: boolean
= false
Whether hats are enabled. This can be determined by a setting, a toggle command, or both.
Implementation of
Defined in
libs/common/ide/fake/FakeHats.ts:15
Methods
onDidChangeEnabledHatStyles
▸ onDidChangeEnabledHatStyles(_listener
): Disposable
Parameters
Name | Type |
---|---|
_listener | Listener <[HatStyleMap ]> |
Returns
Implementation of
Hats.onDidChangeEnabledHatStyles
Defined in
libs/common/ide/fake/FakeHats.ts:11
onDidChangeIsEnabled
▸ onDidChangeIsEnabled(_listener
): Disposable
Parameters
Name | Type |
---|---|
_listener | Listener <[boolean ]> |
Returns
Implementation of
Defined in
libs/common/ide/fake/FakeHats.ts:16
setHatRanges
▸ setHatRanges(_hatRanges
): Promise
<void
>
Set which ranges each hat should have
Parameters
Name | Type |
---|---|
_hatRanges | HatRange [] |
Returns
Promise
<void
>