Type aliases
ActionHandler
Type parameters
BuildInActionName
BuildInActions
BuildInActions: { base.find-in-repository: any; control-center.refresh: any; control-center.toggle: any; doc.hide-history: any; doc.show-history: any; editor.refresh-custom-editor: any; editor.toggle-wrap: any; editor.trigger-save: any; extension.show-manager: any; file-tabs.close-current: any; file-tabs.close-tabs: any; file-tabs.refresh-action-btns: any; file-tabs.search-tabs: any; file-tabs.switch-left: any; file-tabs.switch-right: any; filter.choose-document: any; keyboard-shortcuts.show-manager: any; layout.toggle-editor: any; layout.toggle-side: any; layout.toggle-view: any; layout.toggle-xterm: any; plugin.document-history-stack.back: any; plugin.document-history-stack.forward: any; plugin.electron-zoom.zoom-in: any; plugin.electron-zoom.zoom-out: any; plugin.electron-zoom.zoom-reset: any; plugin.image-hosting-picgo.upload: any; plugin.image-localization.download-all: any; plugin.status-bar-help.show-features: any; plugin.status-bar-help.show-plugin: any; plugin.status-bar-help.show-readme: any; plugin.switch-todo.switch: any; premium.show: any; status-bar.refresh-menu: any; tree.refresh: any; tree.reveal-current-node: any; view.enter-presentation: any; view.exit-presentation: any; view.get-content-html: any; view.get-render-env: any; view.get-view-dom: any; view.refresh: any; view.render: any; view.render-immediately: any; view.reveal-line: any; view.show-find-in-preview: any; workbench.show-quick-open: any; workbench.toggle-outline: any; xterm.init: any; xterm.run: any }
BuildInHookTypes
Build
In
Hook
Types
: { ACTION_AFTER_RUN
: { name
: string }; ACTION_BEFORE_RUN
: { name
: string }; CODE_RUNNER_CHANGE
: { type
: "register" | "remove" }; COMMAND_KEYBINDING_CHANGED
: never; DEEP_LINK_OPEN
: { url
: string }; DOC_BEFORE_SAVE
: { content
: string; doc
: Doc }; DOC_BEFORE_SWITCH
: { doc
?: Doc | null }; DOC_CHANGED
: { doc
: Doc }; DOC_CREATED
: { doc
: Doc }; DOC_DELETED
: { doc
: Doc }; DOC_MOVED
: { newDoc
: Doc; oldDoc
: Doc }; DOC_PRE_ENSURE_CURRENT_FILE_SAVED
: never; DOC_PRE_SWITCH
: { doc
?: Doc | null }; DOC_SAVED
: { doc
: Doc }; DOC_SWITCHED
: { doc
: Doc | null }; DOC_SWITCHING
: { doc
?: Doc | null }; DOC_SWITCH_FAILED
: { doc
?: Doc | null; message
: string }; EDITOR_CONTENT_CHANGE
: { uri
: string; value
: string }; EDITOR_CURRENT_EDITOR_CHANGE
: { current
?: CustomEditor | null }; EDITOR_CUSTOM_EDITOR_CHANGE
: { type
: "register" | "remove" | "switch" }; EDITOR_PASTE_IMAGE
: { file
: File }; EDITOR_READY
: { editor
: Monaco.editor.IStandaloneCodeEditor; monaco
: typeof Monaco }; EXPORT_AFTER_PREPARE
: { type
: ExportType }; EXPORT_BEFORE_PREPARE
: { type
: ExportType }; EXTENSION_READY
: { extensions
: Extension[] }; GLOBAL_KEYDOWN
: KeyboardEvent; GLOBAL_KEYUP
: KeyboardEvent; GLOBAL_RESIZE
: never; I18N_CHANGE_LANGUAGE
: { currentLang
: Language; lang
: LanguageName }; MARKDOWN_BEFORE_RENDER
: { env
: RenderEnv; md
: markdownit; src
: string }; MONACO_BEFORE_INIT
: { monaco
: typeof Monaco }; MONACO_READY
: { editor
: Monaco.editor.IStandaloneCodeEditor; monaco
: typeof Monaco }; PLUGIN_HOOK
: { payload
: { latex
: string; options
: any }; plugin
: "markdown-katex"; type
: "before-render" }; PREMIUM_STATUS_CHANGED
: never; SETTING_BEFORE_WRITE
: { settings
: Partial<BuildInSettings> }; SETTING_CHANGED
: { changedKeys
: keyof BuildInSettings[]; oldSettings
: BuildInSettings; schema
: SettingSchema; settings
: BuildInSettings }; SETTING_FETCHED
: { oldSettings
: BuildInSettings; settings
: BuildInSettings }; SETTING_PANEL_BEFORE_SHOW
: {}; STARTUP
: never; THEME_CHANGE
: { name
: ThemeName }; TREE_NODE_DBLCLICK
: { node
: Components.Tree.Node }; TREE_NODE_SELECT
: { node
: Components.Tree.Node }; VIEW_AFTER_REFRESH
: never; VIEW_BEFORE_REFRESH
: never; VIEW_ELEMENT_CLICK
: { e
: MouseEvent; view
: HTMLElement }; VIEW_ELEMENT_DBCLICK
: { e
: MouseEvent; view
: HTMLElement }; VIEW_FILE_CHANGE
: never; VIEW_KEY_DOWN
: { e
: KeyboardEvent; view
: HTMLElement }; VIEW_MOUNTED
: never; VIEW_ON_GET_HTML_FILTER_NODE
: { node
: HTMLElement; options
: { highlightCode
?: boolean; includeStyle
?: boolean; inlineLocalImage
?: boolean; inlineStyle
?: boolean; onlySelected
?: boolean; preferPng
?: boolean; uploadLocalImage
?: boolean; nodeProcessor
?: any } }; VIEW_PREVIEWER_CHANGE
: { type
: "register" | "remove" | "switch" }; VIEW_RENDER
: never; VIEW_RENDERED
: never; VIEW_RENDER_IFRAME_READY
: { iframe
: HTMLIFrameElement }; VIEW_SCROLL
: { e
: Event } }Type declaration
ACTION_AFTER_RUN: { name: string }
ACTION_BEFORE_RUN: { name: string }
CODE_RUNNER_CHANGE: { type: "register" | "remove" }
type: "register" | "remove"
COMMAND_KEYBINDING_CHANGED: never
DEEP_LINK_OPEN: { url: string }
DOC_BEFORE_SAVE: { content: string; doc: Doc }
DOC_BEFORE_SWITCH: { doc?: Doc | null }
Optional doc?: Doc | null
DOC_CHANGED: { doc: Doc }
DOC_CREATED: { doc: Doc }
DOC_DELETED: { doc: Doc }
DOC_MOVED: { newDoc: Doc; oldDoc: Doc }
DOC_PRE_ENSURE_CURRENT_FILE_SAVED: never
DOC_PRE_SWITCH: { doc?: Doc | null }
Optional doc?: Doc | null
DOC_SAVED: { doc: Doc }
DOC_SWITCHED: { doc: Doc | null }
DOC_SWITCHING: { doc?: Doc | null }
Optional doc?: Doc | null
DOC_SWITCH_FAILED: { doc?: Doc | null; message: string }
Optional doc?: Doc | null
message: string
EDITOR_CONTENT_CHANGE: { uri: string; value: string }
EDITOR_CURRENT_EDITOR_CHANGE: { current?: CustomEditor | null }
EDITOR_CUSTOM_EDITOR_CHANGE: { type: "register" | "remove" | "switch" }
type: "register" | "remove" | "switch"
EDITOR_PASTE_IMAGE: { file: File }
EDITOR_READY: { editor: Monaco.editor.IStandaloneCodeEditor; monaco: typeof Monaco }
editor: Monaco.editor.IStandaloneCodeEditor
monaco: typeof Monaco
EXPORT_AFTER_PREPARE: { type: ExportType }
EXPORT_BEFORE_PREPARE: { type: ExportType }
EXTENSION_READY: { extensions: Extension[] }
GLOBAL_KEYDOWN: KeyboardEvent
GLOBAL_KEYUP: KeyboardEvent
GLOBAL_RESIZE: never
I18N_CHANGE_LANGUAGE: { currentLang: Language; lang: LanguageName }
MARKDOWN_BEFORE_RENDER: { env: RenderEnv; md: markdownit; src: string }
MONACO_BEFORE_INIT: { monaco: typeof Monaco }
MONACO_READY: { editor: Monaco.editor.IStandaloneCodeEditor; monaco: typeof Monaco }
editor: Monaco.editor.IStandaloneCodeEditor
monaco: typeof Monaco
PLUGIN_HOOK: { payload: { latex: string; options: any }; plugin: "markdown-katex"; type: "before-render" }
payload: { latex: string; options: any }
latex: string
options: any
plugin: "markdown-katex"
type: "before-render"
PREMIUM_STATUS_CHANGED: never
SETTING_BEFORE_WRITE: { settings: Partial<BuildInSettings> }
SETTING_PANEL_BEFORE_SHOW: {}
STARTUP: never
THEME_CHANGE: { name: ThemeName }
VIEW_AFTER_REFRESH: never
VIEW_BEFORE_REFRESH: never
VIEW_ELEMENT_CLICK: { e: MouseEvent; view: HTMLElement }
e: MouseEvent
view: HTMLElement
VIEW_ELEMENT_DBCLICK: { e: MouseEvent; view: HTMLElement }
e: MouseEvent
view: HTMLElement
VIEW_FILE_CHANGE: never
VIEW_KEY_DOWN: { e: KeyboardEvent; view: HTMLElement }
e: KeyboardEvent
view: HTMLElement
VIEW_MOUNTED: never
VIEW_ON_GET_HTML_FILTER_NODE: { node: HTMLElement; options: { highlightCode?: boolean; includeStyle?: boolean; inlineLocalImage?: boolean; inlineStyle?: boolean; onlySelected?: boolean; preferPng?: boolean; uploadLocalImage?: boolean; nodeProcessor?: any } }
node: HTMLElement
options: { highlightCode?: boolean; includeStyle?: boolean; inlineLocalImage?: boolean; inlineStyle?: boolean; onlySelected?: boolean; preferPng?: boolean; uploadLocalImage?: boolean; nodeProcessor?: any }
Optional highlightCode?: boolean
Optional includeStyle?: boolean
Optional inlineLocalImage?: boolean
Optional inlineStyle?: boolean
Optional onlySelected?: boolean
Optional preferPng?: boolean
Optional uploadLocalImage?: boolean
nodeProcessor?:function
- nodeProcessor(node: HTMLElement): void
Parameters
Returns void
VIEW_PREVIEWER_CHANGE: { type: "register" | "remove" | "switch" }
type: "register" | "remove" | "switch"
VIEW_RENDER: never
VIEW_RENDERED: never
VIEW_RENDER_IFRAME_READY: { iframe: HTMLIFrameElement }
iframe: HTMLIFrameElement
VIEW_SCROLL: { e: Event }
BuildInIOCTypes
Build
InIOCTypes
: { [ key in keyof BuildInHookTypes]: any } & { CODE_RUNNER
: CodeRunner; CONTROL_CENTER_SCHEMA_TAPPERS
: any; EDITOR_CUSTOM_EDITOR
: CustomEditor; EDITOR_MARKDOWN_MONARCH_LANGUAGE_TAPPERS
: any; EDITOR_SIMPLE_COMPLETION_ITEM_TAPPERS
: any; STATUS_BAR_MENU_TAPPERS
: any; THEME_STYLES
: any; VIEW_PREVIEWER
: Previewer; ACTION_TAPPERS
: any; TABS_ACTION_BTN_TAPPERS
: any; TABS_TAB_CONTEXT_MENU_TAPPERS
: any }ConvertOpts
ConvertOpts: { fromHtmlOptions?: { highlightCode: boolean; includeStyle: boolean; inlineLocalImage: boolean; inlineStyle: boolean; uploadLocalImage: boolean }; fromType: "markdown" | "html"; toType: "docx" | "html" | "rst" | "adoc" }
Type declaration
Optional fromHtmlOptions?: { highlightCode: boolean; includeStyle: boolean; inlineLocalImage: boolean; inlineStyle: boolean; uploadLocalImage: boolean }
highlightCode: boolean
includeStyle: boolean
inlineLocalImage: boolean
inlineStyle: boolean
uploadLocalImage: boolean
fromType: "markdown" | "html"
toType: "docx" | "html" | "rst" | "adoc"
CustomEditor
CustomEditor: { component: any; displayName: string; hiddenPreview?: boolean; name: string; getIsDirty?: any; when: any }
Type declaration
component: any
displayName: string
Optional hiddenPreview?: boolean
name: string
getIsDirty?:function
- getIsDirty(): boolean | Promise<boolean>
Returns boolean | Promise<boolean>
when:function
Parameters
Returns boolean | Promise<boolean>
CustomEditorCtx
Custom
Editor
Ctx
: { doc
?: Doc | null }Type declaration
Optional doc?: Doc | null
ExportType
ExportType: "print" | "pdf" | "docx" | "html" | "rst" | "adoc"
ExtensionCompatible
ExtensionCompatible: { reason: string; value: boolean }
Type declaration
reason: string
value: boolean
ExtensionLoadStatus
ExtensionLoadStatus: { activationTime: number; plugin: boolean; style: boolean; themes: boolean; version?: string }
Type declaration
activationTime: number
plugin: boolean
style: boolean
themes: boolean
Optional version?: string
FileSort
FileSort: { by: "mtime" | "birthtime" | "name" | "serial"; order: "asc" | "desc" }
Type declaration
by: "mtime" | "birthtime" | "name" | "serial"
order: "asc" | "desc"
FindInRepositoryQuery
FindInRepositoryQuery: { caseSensitive?: boolean; exclude?: string; include?: string; pattern?: string; regExp?: boolean; wholeWord?: boolean }
Type declaration
Optional caseSensitive?: boolean
Optional exclude?: string
Optional include?: string
Optional pattern?: string
Optional regExp?: boolean
Optional wholeWord?: boolean
FrontMatterAttrs
FrontMatterAttrs: { defaultPreviewer?: string; define?: Record<string, boolean>; enableMacro?: boolean; headingNumber?: boolean; mdOptions?: Record<string, boolean>; wrapCode?: boolean }
Type declaration
Optional defaultPreviewer?: string
Optional define?: Record<string, boolean>
Optional enableMacro?: boolean
Optional headingNumber?: boolean
Optional mdOptions?: Record<string, boolean>
Optional wrapCode?: boolean
Keybinding
Keybinding: { command: string; keys: string | null; type: "workbench" | "editor" | "application" }
Type declaration
command: string
keys: string | null
type: "workbench" | "editor" | "application"
LanguageName
PremiumTab
PremiumTab: "intro" | "activation"
Previewer
Previewer: { component: any; displayName?: string; name: string }
Type declaration
component: any
Optional displayName?: string
name: string
PrintOpts
PrintOpts: { landscape?: boolean; pageSize?: string; printBackground?: boolean; scaleFactor?: number }
Type declaration
Optional landscape?: boolean
Optional pageSize?: string
Optional printBackground?: boolean
Optional scaleFactor?: number
RegistryHostname
RegistryHostname: "registry.npmjs.org" | "registry.npmmirror.com"
RenderEnv
Render
Env
: { attributes
?: Record<string, any>; file
: Doc | null; renderCount
: number; safeMode
?: boolean; source
: string; tokens
: Token[] }Type declaration
Optional attributes?: Record<string, any>
file: Doc | null
renderCount: number
Optional safeMode?: boolean
source: string
tokens: Token[]
SettingGroup
SettingGroup: "repos" | "appearance" | "editor" | "image" | "proxy" | "other" | "macros" | "render"
SettingSchema
Type declaration
properties: { [ K in keyof BuildInSettings]: { defaultValue: BuildInSettings[K] extends any ? BuildInSettings[K] : any; description?: TTitle; enum?: string[] | number[]; group: SettingGroup; items?: { properties: { [ K in string]: { description?: TTitle; options: { inputAttributes: { placeholder: TTitle } }; title: TTitle; type: string } }; title: TTitle; type: string }; needReloadWindowWhenChanged?: boolean; required?: boolean; title: TTitle; type: string; validator?: any } }
type: string
TTitle
TTitle
: keyof { [ K in MsgPath as `T_${K}`]: never }ThemeName
ThemeName: "system" | "dark" | "light"