Class: VscodeEnabledHatStyleManager
ide/vscode/VscodeEnabledHatStyleManager.VscodeEnabledHatStyleManager
Keeps track of the available hat styles, along with their associated color and shape identifiers, and penalties. Note that this class is not responsible for deciding how these colors / shapes should be displayed. The actual display mechanics are handled by {@link VscodeHatDecorationMap}.
In VSCode, there is a hat style for every shape-color combination, filtered by those whose penalty is not too large.
Constructors
constructor
• new VscodeEnabledHatStyleManager(extensionContext)
Parameters
| Name | Type |
|---|---|
extensionContext | ExtensionContext |
Defined in
ide/vscode/VscodeEnabledHatStyleManager.ts:36
Properties
hatStyleMap
• hatStyleMap: Partial<Record<VscodeHatStyleName, ExtendedHatStyleInfo>>
Defined in
ide/vscode/VscodeEnabledHatStyleManager.ts:33
notifier
• Private notifier: Notifier<[HatStyleMap]>
Defined in
ide/vscode/VscodeEnabledHatStyleManager.ts:34
Methods
constructHatStyleMap
▸ Private constructHatStyleMap(): void
Returns
void
Defined in
ide/vscode/VscodeEnabledHatStyleManager.ts:56
recomputeEnabledHatStyles
▸ Private recomputeEnabledHatStyles(): Promise<void>
Returns
Promise<void>
Defined in
ide/vscode/VscodeEnabledHatStyleManager.ts:51
registerListener
▸ registerListener(listener): Disposable
Parameters
| Name | Type |
|---|---|
listener | Listener<[HatStyleMap]> |