Module renderer/services/setting
Functions
changeSchema
Parameters
Returns void
fetchSettings
- fetchSettings(): Promise<any>
Returns Promise<any>
getDefaultSetting
getSchema
Returns Schema
getSetting
Type parameters
Parameters
Type parameters
Parameters
key: T
Optional defaultVal: null
getSettings
Returns any
hideSettingPanel
Returns void
setSetting
Type parameters
Parameters
Returns Promise<void>
showSettingPanel
- showSettingPanel(keyOrGroup?: "editor" | "custom-css" | "license" | "theme" | "mark" | "repos" | "appearance" | "render" | "image" | "proxy" | "macros" | "other" | "language" | "assets-dir" | "shell" | "envs" | "auto-save" | "plantuml-api" | "hide-main-window-on-startup" | "keep-running-after-closing-window" | "extension.registry" | "extension.auto-upgrade" | "keybindings" | "editor.mouse-wheel-zoom" | "editor.font-size" | "editor.tab-size" | "editor.ordered-list-completion" | "editor.minimap" | "editor.line-numbers" | "editor.enable-preview" | "editor.font-family" | "editor.complete-emoji" | "editor.todo-with-time" | "editor.suggest-on-trigger-characters" | "editor.quick-suggestions" | "render.md-html" | "render.md-breaks" | "render.md-linkify" | "render.md-typographer" | "render.md-emoji" | "render.md-sub" | "render.md-sup" | "render.multimd-multiline" | "render.multimd-rowspan" | "render.multimd-headerless" | "render.multimd-multibody" | "assets.path-type" | "plugin.image-hosting-picgo.server-url" | "plugin.image-hosting-picgo.enable-paste-image" | "updater.source" | "doc-history.number-limit" | "search.number-limit" | "server.host" | "server.port" | "tree.exclude" | "proxy.enabled" | "proxy.server" | "proxy.pac-url" | "proxy.bypass-list"): Promise<void>
- showSettingPanel(keyOrGroup?: string): Promise<void>
Parameters
Optional keyOrGroup: "editor" | "custom-css" | "license" | "theme" | "mark" | "repos" | "appearance" | "render" | "image" | "proxy" | "macros" | "other" | "language" | "assets-dir" | "shell" | "envs" | "auto-save" | "plantuml-api" | "hide-main-window-on-startup" | "keep-running-after-closing-window" | "extension.registry" | "extension.auto-upgrade" | "keybindings" | "editor.mouse-wheel-zoom" | "editor.font-size" | "editor.tab-size" | "editor.ordered-list-completion" | "editor.minimap" | "editor.line-numbers" | "editor.enable-preview" | "editor.font-family" | "editor.complete-emoji" | "editor.todo-with-time" | "editor.suggest-on-trigger-characters" | "editor.quick-suggestions" | "render.md-html" | "render.md-breaks" | "render.md-linkify" | "render.md-typographer" | "render.md-emoji" | "render.md-sub" | "render.md-sup" | "render.multimd-multiline" | "render.multimd-rowspan" | "render.multimd-headerless" | "render.multimd-multibody" | "assets.path-type" | "plugin.image-hosting-picgo.server-url" | "plugin.image-hosting-picgo.enable-paste-image" | "updater.source" | "doc-history.number-limit" | "search.number-limit" | "server.host" | "server.port" | "tree.exclude" | "proxy.enabled" | "proxy.server" | "proxy.pac-url" | "proxy.bypass-list"
Returns Promise<void>
Parameters
Optional keyOrGroup: string
Returns Promise<void>
writeSettings
- writeSettings(settings: Record<string, any>): Promise<any>
Parameters
settings: Record<string, any>
Returns Promise<any>
Change Schema.