Skip to main content

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

Hats.enabledHatStyles

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

Hats.isEnabled

Defined in

libs/common/ide/fake/FakeHats.ts:15

Methods

onDidChangeEnabledHatStyles

onDidChangeEnabledHatStyles(_listener): Disposable

Parameters

NameType
_listenerListener<[HatStyleMap]>

Returns

Disposable

Implementation of

Hats.onDidChangeEnabledHatStyles

Defined in

libs/common/ide/fake/FakeHats.ts:11


onDidChangeIsEnabled

onDidChangeIsEnabled(_listener): Disposable

Parameters

NameType
_listenerListener<[boolean]>

Returns

Disposable

Implementation of

Hats.onDidChangeIsEnabled

Defined in

libs/common/ide/fake/FakeHats.ts:16


setHatRanges

setHatRanges(_hatRanges): Promise<void>

Set which ranges each hat should have

Parameters

NameType
_hatRangesHatRange[]

Returns

Promise<void>

Implementation of

Hats.setHatRanges

Defined in

libs/common/ide/fake/FakeHats.ts:6