Skip to main content
Version: 0.9.0-beta.2

Interface: IBuiltinService

molecule.IBuiltinService

Implemented by

Methods

getConstant

getConstant(id): undefined | IBuiltinConstantProps

Get the specific constant by id

Parameters

NameType
id"PANEL_PROBLEMS" | "STATUS_PROBLEMS" | "SAMPLE_FOLDER_PANEL_ID" | "EDITOR_PANEL_ID" | "OUTLINE_PANEL_ID" | "OUTLINE_PANEL_MORE_DESC" | "EXPLORER_ACTIVITY_ITEM" | "EXPLORER_ACTION_TITLE" | "EXPLORER_TOGGLE_VERTICAL" | "EXPLORER_TOGGLE_SAVE_ALL" | "EXPLORER_TOGGLE_CLOSE_ALL_EDITORS" | "EXPLORER_TOGGLE_SAVE_GROUP" | "EXPLORER_TOGGLE_CLOSE_GROUP_EDITORS" | "NEW_FILE_COMMAND_ID" | "NEW_FOLDER_COMMAND_ID" | "RENAME_COMMAND_ID" | "REMOVE_COMMAND_ID" | "DELETE_COMMAND_ID" | "OPEN_TO_SIDE_COMMAND_ID" | "FIND_IN_WORKSPACE_ID" | "DOWNLOAD_COMMAND_ID" | "EDITOR_MENU_CLOSE_TO_RIGHT" | "EDITOR_MENU_CLOSE_TO_LEFT" | "EDITOR_MENU_CLOSE_ALL" | "EDITOR_MENU_CLOSE_OTHERS" | "EDITOR_MENU_CLOSE_SAVED" | "EDITOR_MENU_CLOSE" | "EDITOR_MENU_SHOW_OPENEDITORS" | "EDITOR_MENU_SPILIT" | "SETTING_ID" | "PROBLEM_MODEL_ID" | "PROBLEM_MODEL_NAME" | "NOTIFICATION_CLEAR_ALL_ID" | "NOTIFICATION_HIDE_ID" | "NOTIFICATION_MODEL_ID" | "NOTIFICATION_MODEL_NAME" | "STATUS_BAR_HIDE_ID" | "SEARCH_CASE_SENSITIVE_COMMAND_ID" | "SEARCH_WHOLE_WORD_COMMAND_ID" | "SEARCH_REGULAR_EXPRESSION_COMMAND_ID" | "SEARCH_PRESERVE_CASE_COMMAND_ID" | "SEARCH_REPLACE_ALL_COMMAND_ID" | "SEARCH_ACTIVITY_ITEM" | "SEARCH_TOOLBAR_REFRESH" | "SEARCH_TOOLBAR_CLEAR" | "SEARCH_TOOLBAR_COLLAPSE" | "PANEL_TOOLBOX_CLOSE" | "PANEL_TOOLBOX_RESIZE" | "PANEL_TOOLBOX_RESTORE_SIZE" | "PANEL_OUTPUT" | "MENU_FILE_OPEN" | "MENU_QUICK_COMMAND" | "MENU_VIEW_MENUBAR" | "MENU_VIEW_ACTIVITYBAR" | "MENU_VIEW_STATUSBAR" | "MENU_VIEW_PANEL" | "ACTION_QUICK_COMMAND" | "ACTION_QUICK_SELECT_ALL" | "ACTION_QUICK_COPY_LINE_UP" | "ACTION_QUICK_UNDO" | "ACTION_QUICK_REDO" | "ACTION_QUICK_CREATE_FILE" | "ACTION_QUICK_CREATE_FOLDER" | "ACTION_QUICK_ACCESS_SETTINGS" | "ACTION_SELECT_THEME" | "ACTION_SELECT_LOCALE" | "ACTIVITY_BAR_GLOBAL_SETTINGS" | "ACTIVITY_BAR_GLOBAL_ACCOUNT" | "CONTEXT_MENU_MENU" | "CONTEXT_MENU_EXPLORER" | "CONTEXT_MENU_SEARCH" | "CONTEXT_MENU_HIDE" | "MENUBAR_MODE_HORIZONTAL" | "MENUBAR_MODE_VERTICAL" | "MENUBAR_MENU_MODE_DIVIDER"

Returns

undefined | IBuiltinConstantProps

Defined in

src/services/builtinService/index.ts:38


getConstants

getConstants(): Partial<Object>

Get all constants

Returns

Partial<Object>

Defined in

src/services/builtinService/index.ts:42


getModule

getModule<T>(id): undefined | IBuiltinModuleProps<T>

Get the specific module by id

Type parameters

Name
T

Parameters

NameType
id"builtInExplorerActivityItem" | "builtInExplorerFolderPanel" | "builtInExplorerHeaderToolbar" | "builtInExplorerEditorPanel" | "builtInExplorerOutlinePanel" | "BuiltInEditorOptions" | "builtInEditorInitialActions" | "builtInEditorInitialMenu" | "builtInEditorTreeHeaderContextMenu" | "builtInEditorTreeContextMenu" | "BuiltInSettingsTab" | "builtInStatusProblems" | "builtInPanelProblems" | "NOTIFICATION_CLEAR_ALL" | "NOTIFICATION_HIDE" | "builtInNotification" | "STATUS_EDITOR_INFO" | "CONTEXT_MENU_HIDE_STATUS_BAR" | "builtInSearchActivityItem" | "builtInHeaderToolbar" | "builtInSearchAddons" | "builtInReplaceAddons" | "builtInOutputPanel" | "builtInPanelToolboxResize" | "builtInPanelToolboxReStore" | "builtInPanelToolbox" | "builtInMenuBarData" | "quickAcessViewAction" | "quickSelectColorThemeAction" | "quickAccessSettingsAction" | "quickSelectLocaleAction" | "quickTogglePanelAction" | "quickSelectAllAction" | "quickCopyLineUpAction" | "quickUndoAction" | "quickRedoAction" | "quickCreateFileAction" | "COMMON_CONTEXT_MENU" | "BASE_CONTEXT_MENU" | "ROOT_FOLDER_CONTEXT_MENU" | "FILE_CONTEXT_MENU" | "FOLDER_PANEL_CONTEXT_MENU" | "activityBarData" | "contextMenuData"

Returns

undefined | IBuiltinModuleProps<T>

Defined in

src/services/builtinService/index.ts:46


getModules

getModules(): any

Get all modules

Returns

any

Defined in

src/services/builtinService/index.ts:50


inactiveConstant

inactiveConstant(id): boolean

Mark the specific constant as inactive

deprecated we're considering the necessary of this method, because it's useless for now to inactive a constant

Parameters

NameType
id"PANEL_PROBLEMS" | "STATUS_PROBLEMS" | "SAMPLE_FOLDER_PANEL_ID" | "EDITOR_PANEL_ID" | "OUTLINE_PANEL_ID" | "OUTLINE_PANEL_MORE_DESC" | "EXPLORER_ACTIVITY_ITEM" | "EXPLORER_ACTION_TITLE" | "EXPLORER_TOGGLE_VERTICAL" | "EXPLORER_TOGGLE_SAVE_ALL" | "EXPLORER_TOGGLE_CLOSE_ALL_EDITORS" | "EXPLORER_TOGGLE_SAVE_GROUP" | "EXPLORER_TOGGLE_CLOSE_GROUP_EDITORS" | "NEW_FILE_COMMAND_ID" | "NEW_FOLDER_COMMAND_ID" | "RENAME_COMMAND_ID" | "REMOVE_COMMAND_ID" | "DELETE_COMMAND_ID" | "OPEN_TO_SIDE_COMMAND_ID" | "FIND_IN_WORKSPACE_ID" | "DOWNLOAD_COMMAND_ID" | "EDITOR_MENU_CLOSE_TO_RIGHT" | "EDITOR_MENU_CLOSE_TO_LEFT" | "EDITOR_MENU_CLOSE_ALL" | "EDITOR_MENU_CLOSE_OTHERS" | "EDITOR_MENU_CLOSE_SAVED" | "EDITOR_MENU_CLOSE" | "EDITOR_MENU_SHOW_OPENEDITORS" | "EDITOR_MENU_SPILIT" | "SETTING_ID" | "PROBLEM_MODEL_ID" | "PROBLEM_MODEL_NAME" | "NOTIFICATION_CLEAR_ALL_ID" | "NOTIFICATION_HIDE_ID" | "NOTIFICATION_MODEL_ID" | "NOTIFICATION_MODEL_NAME" | "STATUS_BAR_HIDE_ID" | "SEARCH_CASE_SENSITIVE_COMMAND_ID" | "SEARCH_WHOLE_WORD_COMMAND_ID" | "SEARCH_REGULAR_EXPRESSION_COMMAND_ID" | "SEARCH_PRESERVE_CASE_COMMAND_ID" | "SEARCH_REPLACE_ALL_COMMAND_ID" | "SEARCH_ACTIVITY_ITEM" | "SEARCH_TOOLBAR_REFRESH" | "SEARCH_TOOLBAR_CLEAR" | "SEARCH_TOOLBAR_COLLAPSE" | "PANEL_TOOLBOX_CLOSE" | "PANEL_TOOLBOX_RESIZE" | "PANEL_TOOLBOX_RESTORE_SIZE" | "PANEL_OUTPUT" | "MENU_FILE_OPEN" | "MENU_QUICK_COMMAND" | "MENU_VIEW_MENUBAR" | "MENU_VIEW_ACTIVITYBAR" | "MENU_VIEW_STATUSBAR" | "MENU_VIEW_PANEL" | "ACTION_QUICK_COMMAND" | "ACTION_QUICK_SELECT_ALL" | "ACTION_QUICK_COPY_LINE_UP" | "ACTION_QUICK_UNDO" | "ACTION_QUICK_REDO" | "ACTION_QUICK_CREATE_FILE" | "ACTION_QUICK_CREATE_FOLDER" | "ACTION_QUICK_ACCESS_SETTINGS" | "ACTION_SELECT_THEME" | "ACTION_SELECT_LOCALE" | "ACTIVITY_BAR_GLOBAL_SETTINGS" | "ACTIVITY_BAR_GLOBAL_ACCOUNT" | "CONTEXT_MENU_MENU" | "CONTEXT_MENU_EXPLORER" | "CONTEXT_MENU_SEARCH" | "CONTEXT_MENU_HIDE" | "MENUBAR_MODE_HORIZONTAL" | "MENUBAR_MODE_VERTICAL" | "MENUBAR_MENU_MODE_DIVIDER"

Returns

boolean

Defined in

src/services/builtinService/index.ts:30


inactiveModule

inactiveModule(id): boolean

Mark the specific module as inactive

Parameters

NameType
id"builtInExplorerActivityItem" | "builtInExplorerFolderPanel" | "builtInExplorerHeaderToolbar" | "builtInExplorerEditorPanel" | "builtInExplorerOutlinePanel" | "BuiltInEditorOptions" | "builtInEditorInitialActions" | "builtInEditorInitialMenu" | "builtInEditorTreeHeaderContextMenu" | "builtInEditorTreeContextMenu" | "BuiltInSettingsTab" | "builtInStatusProblems" | "builtInPanelProblems" | "NOTIFICATION_CLEAR_ALL" | "NOTIFICATION_HIDE" | "builtInNotification" | "STATUS_EDITOR_INFO" | "CONTEXT_MENU_HIDE_STATUS_BAR" | "builtInSearchActivityItem" | "builtInHeaderToolbar" | "builtInSearchAddons" | "builtInReplaceAddons" | "builtInOutputPanel" | "builtInPanelToolboxResize" | "builtInPanelToolboxReStore" | "builtInPanelToolbox" | "builtInMenuBarData" | "quickAcessViewAction" | "quickSelectColorThemeAction" | "quickAccessSettingsAction" | "quickSelectLocaleAction" | "quickTogglePanelAction" | "quickSelectAllAction" | "quickCopyLineUpAction" | "quickUndoAction" | "quickRedoAction" | "quickCreateFileAction" | "COMMON_CONTEXT_MENU" | "BASE_CONTEXT_MENU" | "ROOT_FOLDER_CONTEXT_MENU" | "FILE_CONTEXT_MENU" | "FOLDER_PANEL_CONTEXT_MENU" | "activityBarData" | "contextMenuData"

Returns

boolean

Defined in

src/services/builtinService/index.ts:34


reset

reset(): void

Reset all constants and modules

Returns

void

Defined in

src/services/builtinService/index.ts:54