# 租户 appStatus 事件说明

核心事件: Loading → Ready → Error

- Loading: 正在加载
- Ready: 环境可用( 但不保证容器激活 ), ready 后所有 API 可用.
- Error 有各种可能, 见下面示例处理
- Online: SDK从离线恢复到上线.
- Offline: SDK掉线
- StatusChanged: INACTIVE → ACTIVE 之间的切换
- PlaygroundChanged: 切换题目环境完成
- LspStatusChanged: 补全可用状态的变化
- RunStatusChanged: 运行结果的状态

## Index

### Enumeration Members

- AnswerAreaInfo
- AnswerAreaOperate
- AppendCustomizeFrameData
- AppendToConsole
- AppendToTerminal
- ApplicationAvailable
- AuthorizationFailed
- BehindTooMuch
- CloseRunLoading
- ConnectionBroken
- ConnectionFailed
- Customize
- Debug
- DevtoolStatusChange
- EditorScroll
- ErrorFromServer
- FileContentChanged
- FileInfo
- FileOpenDone
- FileStructureChanged
- FileStructureDamaged
- FileTreeAction
- Following
- InitError
- InsertCodeByCursorPosition
- InsertTextById
- JumpToAreaById
- LineAction
- Loading
- LspStatusChanged
- Offline
- Online
- OpenLimitFile
- PausePlayback
- PlaybackInfo
- PlaygroundChanged
- PreviewImage
- Ready
- Reconnecting
- ReplaceCodeById
- ReplaceCodeDone
- ReplayCodeByRange
- ReplayEnd
- ReplayStart
- ResourceMonitoring
- RumCmdResult
- RunStatusChanged
- RunUnitTestResult
- RunUnitTestStatus
- ShowPreviewMDIframe
- StatusChanged
- StopLSPServer
- StopRunCmdResult
- StopUnitTestResult
- UnFocusEditor
- UnFollowing
- UnitTestRunResult
- UpdateAreaFlags
- UserEnter
- UserLeave
- UsersUpdated
- Xterm
- XtermInfo

## Enumeration Members

### AnswerAreaInfo

AnswerAreaInfo: "answerAreaInfo"

- Defined in constants/messages.ts:73

### AnswerAreaOperate

AnswerAreaOperate: "answerAreaOperate"

- Defined in constants/messages.ts:72

### AppendCustomizeFrameData

AppendCustomizeFrameData: "appendCustomizeFrameData"

- Defined in constants/messages.ts:61

### AppendToConsole

AppendToConsole: "appendToConsole"

- Defined in constants/messages.ts:44

### AppendToTerminal

AppendToTerminal: "appendToTerminal"

- Defined in constants/messages.ts:45

### ApplicationAvailable

ApplicationAvailable: "ApplicationAvailable"

- Defined in constants/messages.ts:46

### AuthorizationFailed

AuthorizationFailed: "authorizationFailed"

- Defined in constants/messages.ts:58

### BehindTooMuch

BehindTooMuch: "behindTooMuch"

- Defined in constants/messages.ts:77

### CloseRunLoading

CloseRunLoading: "closeRunLoading"

- Defined in constants/messages.ts:78

### ConnectionBroken

ConnectionBroken: "connectionBroken"

- Defined in constants/messages.ts:56

### ConnectionFailed

ConnectionFailed: "connectionFailed"

- Defined in constants/messages.ts:57

### Customize

Customize: "customize"

- Defined in constants/messages.ts:50

### Debug

Debug: "debug"

- Defined in constants/messages.ts:68

### DevtoolStatusChange

DevtoolStatusChange: "devtoolStatusChange"

- Defined in constants/messages.ts:79

### EditorScroll

EditorScroll: "editorScroll"

- Defined in constants/messages.ts:54

### ErrorFromServer

ErrorFromServer: "errorFromServer"

- Defined in constants/messages.ts:60

### FileContentChanged

FileContentChanged: "fileContentChanged"

- Defined in constants/messages.ts:43

### FileInfo

FileInfo: "fileInfo"

- Defined in constants/messages.ts:64

### FileOpenDone

FileOpenDone: "fileOpenDone"

- Defined in constants/messages.ts:23

### FileStructureChanged

FileStructureChanged: "fileStructureChanged"

- Defined in constants/messages.ts:42

### FileStructureDamaged

FileStructureDamaged: "fileStructureDamaged"

- Defined in constants/messages.ts:59

### FileTreeAction

FileTreeAction: "fileTreeAction"

- Defined in constants/messages.ts:26

### Following

Following: "following"

- Defined in constants/messages.ts:38

### InitError

InitError: "initError"

- Defined in constants/messages.ts:21

### InsertCodeByCursorPosition

InsertCodeByCursorPosition: "insertCodeByCursorPosition"

- Defined in constants/messages.ts:75

### InsertTextById

InsertTextById: "insertTextById"

- Defined in constants/messages.ts:65

### JumpToAreaById

JumpToAreaById: "jumpToAreaById"

- Defined in constants/messages.ts:69

### LineAction

LineAction: "lineAction"

- Defined in constants/messages.ts:62

### Loading

Loading: "loading"

- Defined in constants/messages.ts:27

### LspStatusChanged

LspStatusChanged: "lspStatusChanged"

- Defined in constants/messages.ts:36

### Offline

Offline: "offline"

- Defined in constants/messages.ts:30

### Online

Online: "online"

- Defined in constants/messages.ts:31

### OpenLimitFile

OpenLimitFile: "openLimitFile"

- Defined in constants/messages.ts:28

### PausePlayback

PausePlayback: "pausePlayback"

- Defined in constants/messages.ts:35

### PlaybackInfo

PlaybackInfo: "playbackInfo"

- Defined in constants/messages.ts:47

### PlaygroundChanged

PlaygroundChanged: "playgroundChanged"

- Defined in constants/messages.ts:37

### PreviewImage

PreviewImage: "previewImage"

- Defined in constants/messages.ts:24

### Ready

Ready: "ready"

- Defined in constants/messages.ts:29

### Reconnecting

Reconnecting: "reconnecting"

- Defined in constants/messages.ts:32

### ReplaceCodeById

ReplaceCodeById: "replaceCodeById"

- Defined in constants/messages.ts:66

### ReplaceCodeDone

ReplaceCodeDone: "replaceCodeDone"

- Defined in constants/messages.ts:25

### ReplayCodeByRange

ReplayCodeByRange: "replayCodeByRange"

- Defined in constants/messages.ts:76

### ReplayEnd

ReplayEnd: "ReplayEnd"

- Defined in constants/messages.ts:49

### ReplayStart

ReplayStart: "ReplayStart"

- Defined in constants/messages.ts:48

### ResourceMonitoring

ResourceMonitoring: "resourceMonitoring"

- Defined in constants/messages.ts:71

### RumCmdResult

RumCmdResult: "rumCmdResult"

- Defined in constants/messages.ts:19

### RunStatusChanged

RunStatusChanged: "runStatusChanged"

- Defined in constants/messages.ts:41

### RunUnitTestResult

RunUnitTestResult: "runUnitTestResult"

- Defined in constants/messages.ts:17

### RunUnitTestStatus

RunUnitTestStatus: "runUnitTestStatus"

- Defined in constants/messages.ts:16

### ShowPreviewMDIframe

ShowPreviewMDIframe: "showPreviewMDIframe"

- Defined in constants/messages.ts:80

### StatusChanged

StatusChanged: "statusChanged"

- Defined in constants/messages.ts:33

### StopLSPServer

StopLSPServer: "stopLSPServer"

- Defined in constants/messages.ts:40

### StopRunCmdResult

StopRunCmdResult: "stopRunCmdResult"

- Defined in constants/messages.ts:20

### StopUnitTestResult

StopUnitTestResult: "stopUnitTestResult"

- Defined in constants/messages.ts:18

### UnFocusEditor

UnFocusEditor: "unFocusEditor"

- Defined in constants/messages.ts:22

### UnFollowing

UnFollowing: "unFollowing"

- Defined in constants/messages.ts:39

### UnitTestRunResult

UnitTestRunResult: "unitTestRunResult"

- Defined in constants/messages.ts:34

### UpdateAreaFlags

UpdateAreaFlags: "updateAreaFlags"

- Defined in constants/messages.ts:67

### UserEnter

UserEnter: "userEnter"

- Defined in constants/messages.ts:51

### UserLeave

UserLeave: "userLeave"

- Defined in constants/messages.ts:52

### UsersUpdated

UsersUpdated: "usersUpdated"

- Defined in constants/messages.ts:53

### Xterm

Xterm: "xterm"

- Defined in constants/messages.ts:70

### XtermInfo

XtermInfo: "xtermInfo"

- Defined in constants/messages.ts:74

Generated using TypeDoc