"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SETTINGS_COMMAND_OPEN_SETTINGS_JSON = exports.SETTINGS_COMMAND_OPEN_GLOBAL_SETTINGS = exports.SETTINGS_COMMAND_OPEN_SETTINGS = exports.COPY_RELATIVE_FILE_PATH = exports.COPY_FILE_PATH = exports.CLEAR_TERMINAL = exports.STOP_EXTENSION_HOST_PROFILER = exports.START_EXTENSION_HOST_PROFILER = exports.SHOW_RUN_TIME_EXTENSION = exports.RELOAD_WINDOW = exports.RELOAD_WINDOW_COMMAND = exports.API_OPEN_WITH_EDITOR_COMMAND_ID = exports.API_OPEN_DIFF_EDITOR_COMMAND_ID = exports.OPEN_WITH = exports.DIFF = exports.OPEN_FOLDER = exports.API_OPEN_EDITOR_COMMAND_ID = exports.OPEN = exports.WORKBENCH_FOCUS_ACTIVE_EDITOR_GROUP = exports.FILE_COMMAND_RENAME_FILE = exports.WORKBENCH_FOCUS_FILES_EXPLORER = exports.NEW_WORKBENCH_VIEW_TERMINAL = exports.TERMINAL_COMMAND_TOGGLE_VISIBILITY = exports.TERMINAL_COMMAND_FOCUS = exports.REVERT_FILES = exports.OPEN_EDITOR_AT_INDEX = exports.CLOSE_UNMODIFIED_EDITORS = exports.CLOSE_OTHER_GROUPS = exports.EVEN_EDITOR_WIDTH = exports.LAST_EDITOR_IN_GROUP = exports.NEXT_EDITOR_IN_GROUP = exports.PREVIOUS_EDITOR_IN_GROUP = exports.PREVIOUS_EDITOR = exports.NEXT_EDITOR = exports.NAVIGATE_NEXT = exports.NAVIGATE_DOWN = exports.NAVIGATE_RIGHT = exports.NAVIGATE_UP = exports.NAVIGATE_LEFT = exports.SPLIT_EDITOR_ORTHOGONAL = exports.SPLIT_EDITOR = exports.FILE_SAVE = exports.CLOSE_OTHER_EDITORS = exports.CLOSE_ALL_EDITORS = exports.NEW_UNTITLED_FILE = exports.SPLIT_EDITOR_DOWN = exports.SPLIT_EDITOR_RIGHT = exports.REVERT_AND_CLOSE_ACTIVE_EDITOR = exports.WORKBENCH_CLOSE_ACTIVE_EDITOR = exports.SET_CONTEXT = void 0;
exports.DEBUG_ADD = exports.DEBUG_START = exports.OPEN_MERGEEDITOR = exports.WALKTHROUGHS_COMMAND_GET_STARTED = exports.LAYOUT_COMMAND_MAXIMIZE_EDITOR = exports.THEME_COMMAND_QUICK_SELECT = exports.SEARCH_COMMAND_OPEN_SEARCH = exports.SIDEBAR_TOGGLE_VISIBILITY = exports.MARKER_COMMAND_TOGGLE_SHOW_ERRORS_WARNINGS = exports.MARKER_COMMAND_SHOW_ERRORS_WARNINGS = exports.GET_EXTENSION = exports.REVEAL_IN_EXPLORER = exports.EDITOR_SHOW_ALL_SYMBOLS = exports.DEBUG_COMMAND_STOP = exports.DEBUG_COMMAND_RESTART = exports.DEBUG_COMMAND_PAUSE = exports.DEBUG_COMMAND_START = exports.DEBUG_COMMAND_RUN = exports.DEBUG_COMMAND_CONTINUE = exports.DEBUG_COMMAND_STEP_OUT = exports.DEBUG_COMMAND_STEP_OVER = exports.DEBUG_COMMAND_STEP_INTO = exports.EDITOR_SAVE_ALL = exports.EDITOR_NAVIGATE_FORWARD = exports.EDITOR_NAVIGATE_BACK = exports.SETTINGS_COMMAND_OPEN_GLOBAL_OPEN_KEYMAPS = void 0;
const ide_core_browser_1 = require("@opensumi/ide-core-browser");
const ide_debug_1 = require("@opensumi/ide-debug");
const theme_contribution_1 = require("@opensumi/ide-theme/lib/browser/theme.contribution");
/**
 * 插件进程内置 command 的命名空间
 */
exports.SET_CONTEXT = {
    id: 'setContext',
};
exports.WORKBENCH_CLOSE_ACTIVE_EDITOR = {
    id: 'workbench.action.closeActiveEditor',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.CLOSE.id,
};
exports.REVERT_AND_CLOSE_ACTIVE_EDITOR = {
    id: 'workbench.action.revertAndCloseActiveEditor',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.REVERT_AND_CLOSE.id,
};
exports.SPLIT_EDITOR_RIGHT = {
    id: 'workbench.action.splitEditorRight',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.SPLIT_TO_RIGHT.id,
};
exports.SPLIT_EDITOR_DOWN = {
    id: 'workbench.action.splitEditorDown',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.SPLIT_TO_BOTTOM.id,
};
exports.NEW_UNTITLED_FILE = {
    id: 'workbench.action.files.newUntitledFile',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.NEW_UNTITLED_FILE.id,
};
exports.CLOSE_ALL_EDITORS = {
    id: 'workbench.action.closeAllEditors',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.CLOSE_ALL_IN_GROUP.id,
};
exports.CLOSE_OTHER_EDITORS = {
    id: 'workbench.action.closeOtherEditors',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.CLOSE_OTHER_IN_GROUP.id,
};
exports.FILE_SAVE = {
    id: 'workbench.action.files.save',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.SAVE_CURRENT.id,
};
exports.SPLIT_EDITOR = {
    id: 'workbench.action.splitEditor',
    // 默认打开右侧
    delegate: ide_core_browser_1.EDITOR_COMMANDS.SPLIT_TO_RIGHT.id,
};
exports.SPLIT_EDITOR_ORTHOGONAL = {
    id: 'workbench.action.splitEditorOrthogonal',
    // 默认打开下侧
    delegate: ide_core_browser_1.EDITOR_COMMANDS.SPLIT_TO_BOTTOM.id,
};
exports.NAVIGATE_LEFT = {
    id: 'workbench.action.navigateLeft',
    // 默认打开下侧
    delegate: ide_core_browser_1.EDITOR_COMMANDS.NAVIGATE_LEFT.id,
};
exports.NAVIGATE_UP = {
    id: 'workbench.action.navigateUp',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.NAVIGATE_UP.id,
};
exports.NAVIGATE_RIGHT = {
    id: 'workbench.action.navigateRight',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.NAVIGATE_RIGHT.id,
};
exports.NAVIGATE_DOWN = {
    id: 'workbench.action.navigateDown',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.NAVIGATE_DOWN.id,
};
exports.NAVIGATE_NEXT = {
    id: 'workbench.action.navigateEditorGroups',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.NAVIGATE_NEXT.id,
};
exports.NEXT_EDITOR = {
    id: 'workbench.action.nextEditor',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.NEXT.id,
};
exports.PREVIOUS_EDITOR = {
    id: 'workbench.action.previousEditor',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.PREVIOUS.id,
};
exports.PREVIOUS_EDITOR_IN_GROUP = {
    id: 'workbench.action.previousEditorInGroup',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.PREVIOUS_IN_GROUP.id,
};
exports.NEXT_EDITOR_IN_GROUP = {
    id: 'workbench.action.nextEditorInGroup',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.NEXT_IN_GROUP.id,
};
exports.LAST_EDITOR_IN_GROUP = {
    id: 'workbench.action.lastEditorInGroup',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.LAST_IN_GROUP.id,
};
exports.EVEN_EDITOR_WIDTH = {
    id: 'workbench.action.eventEditorWidths',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.EVEN_EDITOR_GROUPS.id,
};
exports.CLOSE_OTHER_GROUPS = {
    id: 'workbench.action.closeEditorsInOtherGroups',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.CLOSE_OTHER_GROUPS.id,
};
exports.CLOSE_UNMODIFIED_EDITORS = {
    id: 'workbench.action.closeUnmodifiedEditors',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.CLOSE_SAVED.id,
};
exports.OPEN_EDITOR_AT_INDEX = {
    id: 'workbench.action.openEditorAtIndex',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.OPEN_EDITOR_AT_INDEX.id,
};
exports.REVERT_FILES = {
    id: 'workbench.action.files.revert',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.REVERT_DOCUMENT.id,
};
exports.TERMINAL_COMMAND_FOCUS = {
    id: 'workbench.action.terminal.focus',
    delegate: 'workbench.view.terminal',
};
exports.TERMINAL_COMMAND_TOGGLE_VISIBILITY = {
    id: 'workbench.action.terminal.toggleTerminal',
    // 每一个 Container 在注册后都会注册自己的 toggle 命令
    delegate: 'container.toggle.terminal',
};
exports.NEW_WORKBENCH_VIEW_TERMINAL = {
    id: 'workbench.action.terminal.new',
    delegate: ide_core_browser_1.TERMINAL_COMMANDS.ADD.id,
};
// 在资源管理器中聚焦文件
exports.WORKBENCH_FOCUS_FILES_EXPLORER = {
    id: 'workbench.files.action.focusFilesExplorer',
    delegate: ide_core_browser_1.FILE_COMMANDS.FOCUS_FILES.id,
};
exports.FILE_COMMAND_RENAME_FILE = {
    id: 'renameFile',
    delegate: ide_core_browser_1.FILE_COMMANDS.RENAME_FILE.id,
};
// 打开激活的编辑器组
exports.WORKBENCH_FOCUS_ACTIVE_EDITOR_GROUP = {
    id: 'workbench.action.focusActiveEditorGroup',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.FOCUS_ACTIVE_EDITOR_GROUP.id,
};
// 打开内容
exports.OPEN = {
    id: 'vscode.open',
};
exports.API_OPEN_EDITOR_COMMAND_ID = {
    id: ide_core_browser_1.EDITOR_COMMANDS.API_OPEN_EDITOR_COMMAND_ID,
    delegate: exports.OPEN.id,
};
// 打开文件夹
exports.OPEN_FOLDER = {
    id: 'vscode.openFolder',
    delegate: ide_core_browser_1.FILE_COMMANDS.VSCODE_OPEN_FOLDER.id,
};
// 比较内容
exports.DIFF = {
    id: 'vscode.diff',
};
exports.OPEN_WITH = {
    id: 'vscode.openWith',
};
exports.API_OPEN_DIFF_EDITOR_COMMAND_ID = {
    id: ide_core_browser_1.EDITOR_COMMANDS.API_OPEN_DIFF_EDITOR_COMMAND_ID,
    delegate: exports.DIFF.id,
};
exports.API_OPEN_WITH_EDITOR_COMMAND_ID = {
    id: ide_core_browser_1.EDITOR_COMMANDS.API_OPEN_WITH_EDITOR_COMMAND_ID,
    delegate: exports.OPEN_WITH.id,
};
exports.RELOAD_WINDOW_COMMAND = {
    id: 'reload_window',
};
exports.RELOAD_WINDOW = {
    id: 'workbench.action.reloadWindow',
    delegate: exports.RELOAD_WINDOW_COMMAND.id,
};
exports.SHOW_RUN_TIME_EXTENSION = {
    id: 'workbench.action.showRuntimeExtensions',
    label: 'Show Running Extensions',
};
exports.START_EXTENSION_HOST_PROFILER = {
    id: 'workbench.action.extensionHostProfiler.start',
    label: 'Start Extension Host Profile',
};
exports.STOP_EXTENSION_HOST_PROFILER = {
    id: 'workbench.action.extensionHostProfiler.stop',
    label: 'Stop Extension Host Profile',
};
exports.CLEAR_TERMINAL = {
    id: 'workbench.action.terminal.clear',
    delegate: ide_core_browser_1.TERMINAL_COMMANDS.CLEAR_CONTENT.id,
};
exports.COPY_FILE_PATH = {
    id: 'copyFilePath',
    label: ide_core_browser_1.FILE_COMMANDS.COPY_PATH.label,
};
exports.COPY_RELATIVE_FILE_PATH = {
    id: 'copyRelativeFilePath',
    label: ide_core_browser_1.FILE_COMMANDS.COPY_RELATIVE_PATH.label,
};
exports.SETTINGS_COMMAND_OPEN_SETTINGS = {
    id: 'workbench.action.openSettings',
    delegate: 'core.openpreference',
};
exports.SETTINGS_COMMAND_OPEN_GLOBAL_SETTINGS = {
    id: 'workbench.action.openGlobalSettings',
    delegate: ide_core_browser_1.COMMON_COMMANDS.OPEN_PREFERENCES.id,
};
exports.SETTINGS_COMMAND_OPEN_SETTINGS_JSON = {
    id: 'workbench.action.openSettingsJson',
    delegate: 'preference.open.source',
};
exports.SETTINGS_COMMAND_OPEN_GLOBAL_OPEN_KEYMAPS = {
    id: 'workbench.action.openGlobalKeybindings',
    delegate: ide_core_browser_1.COMMON_COMMANDS.OPEN_KEYMAPS.id,
};
exports.EDITOR_NAVIGATE_BACK = {
    id: 'workbench.action.navigateBack',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.GO_BACK.id,
};
exports.EDITOR_NAVIGATE_FORWARD = {
    id: 'workbench.action.navigateForward',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.GO_FORWARD.id,
};
exports.EDITOR_SAVE_ALL = {
    id: 'workbench.action.files.saveAll',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.SAVE_ALL.id,
};
exports.DEBUG_COMMAND_STEP_INTO = {
    id: 'workbench.action.debug.stepInto',
    delegate: ide_debug_1.DEBUG_COMMANDS.NEXT.id,
};
exports.DEBUG_COMMAND_STEP_OVER = {
    id: 'workbench.action.debug.stepOver',
    delegate: ide_debug_1.DEBUG_COMMANDS.OVER.id,
};
exports.DEBUG_COMMAND_STEP_OUT = {
    id: 'workbench.action.debug.stepOut',
    delegate: ide_debug_1.DEBUG_COMMANDS.PREV.id,
};
exports.DEBUG_COMMAND_CONTINUE = {
    id: 'workbench.action.debug.continue',
    delegate: ide_debug_1.DEBUG_COMMANDS.CONTINUE.id,
};
exports.DEBUG_COMMAND_RUN = {
    id: 'workbench.action.debug.run',
    delegate: ide_debug_1.DEBUG_COMMANDS.START.id,
};
exports.DEBUG_COMMAND_START = {
    id: 'workbench.action.debug.start',
    delegate: ide_debug_1.DEBUG_COMMANDS.START.id,
};
exports.DEBUG_COMMAND_PAUSE = {
    id: 'workbench.action.debug.pause',
    delegate: ide_debug_1.DEBUG_COMMANDS.PAUSE.id,
};
exports.DEBUG_COMMAND_RESTART = {
    id: 'workbench.action.debug.restart',
    delegate: ide_debug_1.DEBUG_COMMANDS.RESTART.id,
};
exports.DEBUG_COMMAND_STOP = {
    id: 'workbench.action.debug.stop',
    delegate: ide_debug_1.DEBUG_COMMANDS.STOP.id,
};
exports.EDITOR_SHOW_ALL_SYMBOLS = {
    id: 'workbench.action.showAllSymbols',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.SEARCH_WORKSPACE_SYMBOL.id,
};
exports.REVEAL_IN_EXPLORER = {
    id: 'revealInExplorer',
    delegate: ide_core_browser_1.FILE_COMMANDS.REVEAL_IN_EXPLORER.id,
};
exports.GET_EXTENSION = {
    id: 'extension.getDescription',
};
exports.MARKER_COMMAND_SHOW_ERRORS_WARNINGS = {
    id: 'workbench.action.showErrorsWarnings',
    delegate: ide_core_browser_1.MARKER_COMMANDS.SHOW_ERRORS_WARNINGS.id,
};
exports.MARKER_COMMAND_TOGGLE_SHOW_ERRORS_WARNINGS = {
    id: 'workbench.actions.view.problems',
    delegate: ide_core_browser_1.MARKER_COMMANDS.TOGGLE_SHOW_ERRORS_WARNINGS.id,
};
exports.SIDEBAR_TOGGLE_VISIBILITY = {
    id: 'workbench.action.toggleSidebarVisibility',
    delegate: ide_core_browser_1.LAYOUT_COMMANDS.TOGGLE_SIDEBAR_VISIBILITY.id,
};
exports.SEARCH_COMMAND_OPEN_SEARCH = {
    id: 'workbench.action.findInFiles',
    delegate: ide_core_browser_1.SEARCH_COMMANDS.OPEN_SEARCH.id,
};
exports.THEME_COMMAND_QUICK_SELECT = {
    id: 'workbench.action.selectTheme',
    delegate: theme_contribution_1.THEME_TOGGLE_COMMAND.id,
};
exports.LAYOUT_COMMAND_MAXIMIZE_EDITOR = {
    id: 'workbench.action.maximizeEditor',
    delegate: ide_core_browser_1.LAYOUT_COMMANDS.MAXIMIZE_EDITOR.id,
};
exports.WALKTHROUGHS_COMMAND_GET_STARTED = {
    id: 'walkthroughs.get.started',
};
exports.OPEN_MERGEEDITOR = {
    id: '_open.mergeEditor',
    delegate: ide_core_browser_1.EDITOR_COMMANDS.OPEN_MERGEEDITOR.id,
    label: 'Open Merge Editor',
};
exports.DEBUG_START = {
    id: 'workbench.action.debug.selectandstart',
    delegate: 'debug.start',
};
exports.DEBUG_ADD = {
    id: 'debug.addConfiguration',
    delegate: 'debug.showAllAutomaticDebugConfigurations',
};
//# sourceMappingURL=builtin-commands.js.map