Skip to main content

notificationStore

MS Code Extension API


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?

optional actions?: NotificationAction[]

Defined in: store/notificationStore.ts:34

collapsed

collapsed: boolean

Defined in: store/notificationStore.ts:32

fullMessage?

optional fullMessage?: string

Defined in: store/notificationStore.ts:28

iconUrl?

optional iconUrl?: 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?

optional message?: string

Defined in: store/notificationStore.ts:27

progress?

optional progress?: 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?

optional customStyle?: 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?

optional variant?: "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

const useNotificationStore: UseBoundStore<StoreApi<NotificationState>>

Defined in: store/notificationStore.ts:58

Global store handling system-wide notifications, toast lifecycle, and user interaction feedback.