notificationStore
MS Code Extension API / store/notificationStore
store/notificationStore
Interfaces
AppNotification
Defined in: store/notificationStore.ts:23
The core notification data structure tracking system state and lifecycle.
Properties
actions?
optionalactions?:NotificationAction[]
Defined in: store/notificationStore.ts:34
collapsed
collapsed:
boolean
Defined in: store/notificationStore.ts:32
fullMessage?
optionalfullMessage?:string
Defined in: store/notificationStore.ts:28
iconUrl?
optionaliconUrl?:string
Defined in: store/notificationStore.ts:36
id
id:
string
Defined in: store/notificationStore.ts:24
isToast
isToast:
boolean
Defined in: store/notificationStore.ts:35
message?
optionalmessage?:string
Defined in: store/notificationStore.ts:27
progress?
optionalprogress?:number
Defined in: store/notificationStore.ts:33
read
read:
boolean
Defined in: store/notificationStore.ts:31
source
source:
string
Defined in: store/notificationStore.ts:29
timestamp
timestamp:
number
Defined in: store/notificationStore.ts:30
title
title:
string
Defined in: store/notificationStore.ts:26
type
type:
NotificationType
Defined in: store/notificationStore.ts:25
NotificationAction
Defined in: store/notificationStore.ts:13
Action configuration for interactive notifications.
Properties
customStyle?
optionalcustomStyle?:CSSProperties
Defined in: store/notificationStore.ts:17
label
label:
string
Defined in: store/notificationStore.ts:14
onClick
onClick: () =>
void
Defined in: store/notificationStore.ts:15
Returns
void
variant?
optionalvariant?:"type1"|"type2"
Defined in: store/notificationStore.ts:16
Type Aliases
NotificationType
NotificationType =
"info"|"warning"|"error"|"loading"|"confirmation"|"success"
Defined in: store/notificationStore.ts:8
Defines the operational categories for notifications. 'confirmation' type is used for user-interactive blocking dialogues.
Variables
useNotificationStore
constuseNotificationStore:UseBoundStore<StoreApi<NotificationState>>
Defined in: store/notificationStore.ts:58
Global store handling system-wide notifications, toast lifecycle, and user interaction feedback.