Type Aliases
BaseConfig
BaseConfig: { hideEditorContextMenu?: boolean; hideEditorToolTip?: boolean }
Type declaration
Optional hideEditorContextMenu?: boolean
Optional hideEditorToolTip?: boolean
CodeSnippetOption
CodeSnippetOption: { option: { detail?: string; label: string }; template: string }
Type declaration
option: { detail?: string; label: string }
Optional detail?: string
label: string
template: string
CodeSnippetType
ComponentType
ComponentType: "Tree" | "Editor" | "Browser" | "Console" | "Shell" | "MarkdownPreview"
Config
Config: { disableEditable?: boolean; disableFileTreeAction?: boolean }
Type declaration
Optional disableEditable?: boolean
Optional disableFileTreeAction?: boolean
ContextMenu
ContextMenuItem
ContextMenuItem: { actionName?: string; actionShortcutKey?: string; className?: string; shortcutClassName?: string; shortcutKey?: string; text: {}; textClassName?: string; withCodeFlag?: boolean; actionFun?: any }
Type declaration
Optional actionName?: string
Optional actionShortcutKey?: string
Optional className?: string
Optional shortcutClassName?: string
Optional shortcutKey?: string
text: {}
[x: string]: ReactI18NextChild | Iterable<ReactI18NextChild>
Optional textClassName?: string
Optional withCodeFlag?: boolean
actionFun?:function
- actionFun(view: EditorView, commands: any, firstNum?: number, lastNum?: number): void
Parameters
view: EditorView
commands: any
Optional firstNum: number
Optional lastNum: number
Returns void
ContextMenuType
Type declaration
Optional overrideItems?: Pick<ContextMenuTypeItem, "action" | "text">[]
Optional title?: string
handleOverride?:function
Parameters
Returns void
handleSelect:function
- handleSelect(e: any, callback?: ((data: any, extralAction: IExtralAction) => void)): void
Parameters
e: any
Optional callback: ((data: any, extralAction: IExtralAction) => void)
Returns void
ContextMenuTypeItem
ContextMenuTypeItem: { action: string; codeAction?: "append" | "replace"; commentStartLabel: string; commentTips?: string; flag?: string; hideCodeBlock: boolean; icon: string; iconLabel: string; id?: number; isAi?: boolean; isCheck?: boolean; isDone?: boolean; isRepalceRange?: boolea; noActionCheck?: boolean; text: string }
Type declaration
action: string
Optional codeAction?: "append" | "replace"
commentStartLabel: string
Optional commentTips?: string
Optional flag?: string
hideCodeBlock: boolean
icon: string
iconLabel: string
Optional id?: number
Optional isAi?: boolean
Optional isCheck?: boolean
Optional isDone?: boolean
Optional isRepalceRange?: boolea
Optional noActionCheck?: boolean
text: string
DockerStatus
DockerStatus: "RUNNING" | "STOP" | "DEBUG_RUNNING"
EditorIndentMode
EditorIndentMode: "space" | "tab"
EditorMode
EditorMode: "default" | "vim" | "emacs"
FileHeaderType
Type declaration
Optional className?: string
icon: { className: string; tips?: TranslateTypeOption; action?: any }
className: string
action?:function
Returns void
action:function
Returns void
Optional showTips?: boolean
Optional tipsDuration?: number
GlobalConfig
Global
Config
: { editorIndentMode
?: EditorIndentMode; editorMode
?: EditorMode; editorTabSize
?: number | "auto"; editorWordWrap
?: boolean; fontSize
?: string; markdownPreview
?: { iframeHeight
?: string; iframeWidth
?: string; isBlank
?: boolean }; openDiagnostic
?: boolean }Type declaration
Optional editorMode?: EditorMode
Optional editorTabSize?: number | "auto"
Optional editorWordWrap?: boolean
Optional fontSize?: string
Optional markdownPreview?: { iframeHeight?: string; iframeWidth?: string; isBlank?: boolean }
Optional iframeHeight?: string
Optional iframeWidth?: string
Optional isBlank?: boolean
Optional openDiagnostic?: boolean
ICodeLanguage
ICodeLanguage: "javascript" | "typescript" | "ruby" | "lua" | "go" | "swift" | "vb" | "kotlin" | "csharp" | "verilog" | "vhdl" | "dart" | "clojure" | "coffeescript" | "erlang" | "hs" | "objectiveC" | "perl" | "scala" | "r" | "shell" | "dockerfile" | "gas" | "asm" | "oCaml" | "yaml" | "elixir" | "html" | "css" | "cpp" | "c" | "java" | "json" | "markdown" | "php" | "python" | "sql" | "rust" | "xml"
IDebugStatus
IDebugStatus: "starting" | "executing" | "executed" | "stop"
IOverrideParams
IOverrideParams: { action: string; ids: string[] }
Type declaration
action: string
ids: string[]
ISpecialFileHighlight
ISpecial
File
Highlight
: { fileName
: string; languageType
: ICodeLanguage }InsertCodeLineCode
InsertCodeLineCode: number | "TOP" | "BOTTOM"
Message
Message: { error?: string; name: Messages; payload?: any }
Type declaration
Optional error?: string
name: Messages
Optional payload?: any
PlaygroundStatus
PlaygroundStatus: "EMPTY" | "ACTIVE" | "INACTIVE"
ReportHighlightCache
ReportHighlightCache: {}
Type declaration
[key: string]: LineInfo[]
ReportHighlightFileInfo
ReportHighlightFileInfo: { arr: number[]; baseContent: string; path: string }
Type declaration
arr: number[]
baseContent: string
path: string
ResultType
ResultType: { message: string; status: boolean }
Type declaration
message: string
status: boolean
TranslateType
TranslateTypeOption
TranslateTypeOption: {}
Type declaration
[x: string]: ReactI18NextChild | Iterable<ReactI18NextChild>
SDK内部组件名