Files
react-native-devtools-frontend/front_end/sources/module.json
T
Andres Olivares fd431fb765 [module.json extensions] sources views
Bug: 1134103
Change-Id: I1f050156edc6c0500aa19dc18f43d7463541128b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2584524
Commit-Queue: Andres Olivares <andoli@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2020-12-10 16:42:44 +00:00

1136 lines
27 KiB
JSON

{
"extensions": [
{
"type": "@UI.ContextMenu.Provider",
"contextTypes": [
"Workspace.UISourceCode",
"Workspace.UILocation",
"SDK.RemoteObject",
"SDK.NetworkRequest",
"Sources.UISourceCodeFrame"
],
"className": "Sources.SourcesPanel"
},
{
"type": "action",
"category": "Debugger",
"actionId": "debugger.toggle-pause",
"iconClass": "largeicon-pause",
"toggleable": true,
"toggledIconClass": "largeicon-resume",
"className": "Sources.SourcesPanel.RevealingActionDelegate",
"contextTypes": [
"Sources.SourcesView",
"UI.ShortcutRegistry.ForwardedShortcut"
],
"options": [
{
"value": true,
"title": "Pause script execution"
},
{
"value": false,
"title": "Resume script execution"
}
],
"bindings": [
{
"shortcut": "F8",
"keybindSets": [
"devToolsDefault"
]
},
{
"platform": "windows,linux",
"shortcut": "Ctrl+\\"
},
{
"shortcut": "F5",
"keybindSets": [
"vsCode"
]
},
{
"shortcut": "Shift+F5",
"keybindSets": [
"vsCode"
]
},
{
"platform": "mac",
"shortcut": "Meta+\\"
}
]
},
{
"type": "action",
"category": "Debugger",
"actionId": "debugger.step-over",
"className": "Sources.SourcesPanel.DebuggingActionDelegate",
"title": "Step over next function call",
"iconClass": "largeicon-step-over",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"bindings": [
{
"shortcut": "F10",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
},
{
"platform": "windows,linux",
"shortcut": "Ctrl+'"
},
{
"platform": "mac",
"shortcut": "Meta+'"
}
]
},
{
"type": "action",
"category": "Debugger",
"actionId": "debugger.step-into",
"className": "Sources.SourcesPanel.DebuggingActionDelegate",
"title": "Step into next function call",
"iconClass": "largeicon-step-into",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"bindings": [
{
"shortcut": "F11",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
},
{
"platform": "windows,linux",
"shortcut": "Ctrl+;"
},
{
"platform": "mac",
"shortcut": "Meta+;"
}
]
},
{
"type": "action",
"category": "Debugger",
"actionId": "debugger.step",
"className": "Sources.SourcesPanel.DebuggingActionDelegate",
"title": "Step",
"iconClass": "largeicon-step",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"bindings": [
{
"shortcut": "F9",
"keybindSets": [
"devToolsDefault"
]
}
]
},
{
"type": "action",
"category": "Debugger",
"actionId": "debugger.step-out",
"className": "Sources.SourcesPanel.DebuggingActionDelegate",
"title": "Step out of current function",
"iconClass": "largeicon-step-out",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"bindings": [
{
"shortcut": "Shift+F11",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
},
{
"platform": "windows,linux",
"shortcut": "Shift+Ctrl+;"
},
{
"platform": "mac",
"shortcut": "Shift+Meta+;"
}
]
},
{
"type": "action",
"actionId": "debugger.run-snippet",
"category": "Debugger",
"className": "Sources.SourcesPanel.DebuggingActionDelegate",
"title": "Run snippet",
"iconClass": "largeicon-play",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+Enter"
},
{
"platform": "mac",
"shortcut": "Meta+Enter"
}
]
},
{
"type": "action",
"actionId": "recorder.toggle-recording",
"experiment": "recorder",
"category": "Recorder",
"className": "Sources.SourcesPanel.DebuggingActionDelegate",
"title": "Start Recording",
"iconClass": "largeicon-start-recording",
"toggleable": true,
"toggledIconClass": "largeicon-stop-recording",
"toggleWithRedColor": true,
"options": [
{
"value": true,
"title": "Record"
},
{
"value": false,
"title": "Stop"
}
],
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+E"
},
{
"platform": "mac",
"shortcut": "Meta+E"
}
]
},
{
"type": "action",
"category": "Debugger",
"actionId": "debugger.toggle-breakpoints-active",
"iconClass": "largeicon-deactivate-breakpoints",
"toggleable": true,
"className": "Sources.SourcesPanel.DebuggingActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"options": [
{
"value": true,
"title": "Deactivate breakpoints"
},
{
"value": false,
"title": "Activate breakpoints"
}
],
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+F8"
},
{
"platform": "mac",
"shortcut": "Meta+F8"
}
]
},
{
"type": "action",
"actionId": "sources.add-to-watch",
"className": "Sources.WatchExpressionsSidebarPane",
"category": "Debugger",
"title": "Add selected text to watches",
"contextTypes": [
"Sources.UISourceCodeFrame"
],
"bindings": [
{
"shortcut": "Ctrl+Shift+A"
}
]
},
{
"type": "@UI.ContextMenu.Provider",
"actionId": "sources.add-to-watch",
"className": "Sources.WatchExpressionsSidebarPane",
"title": "Add to watch",
"contextTypes": [
"ObjectUI.ObjectPropertyTreeElement"
]
},
{
"type": "@UI.ContextMenu.Provider",
"contextTypes": [
"TextEditor.CodeMirrorTextEditor"
],
"className": "Sources.WatchExpressionsSidebarPane"
},
{
"type": "@UI.ContextMenu.Provider",
"contextTypes": [
"Workspace.UISourceCode"
],
"className": "Sources.GutterDiffPlugin.ContextMenuProvider"
},
{
"type": "action",
"actionId": "debugger.evaluate-selection",
"category": "Debugger",
"className": "Sources.SourcesPanel.DebuggingActionDelegate",
"title": "Evaluate selected text in console",
"contextTypes": [
"Sources.UISourceCodeFrame"
],
"bindings": [
{
"shortcut": "Ctrl+Shift+E"
}
]
},
{
"type": "@QuickOpen.FilteredListWidget.Provider",
"title": "Open file",
"prefix": "",
"className": "Sources.OpenFileQuickOpen"
},
{
"type": "@QuickOpen.FilteredListWidget.Provider",
"title": "Go to line",
"prefix": ":",
"className": "Sources.GoToLineQuickOpen"
},
{
"type": "@QuickOpen.FilteredListWidget.Provider",
"title": "Go to symbol",
"prefix": "@",
"className": "Sources.OutlineQuickOpen"
},
{
"type": "context-menu-item",
"location": "navigatorMenu/default",
"actionId": "quickOpen.show"
},
{
"type": "@Common.Revealer",
"contextTypes": [
"Workspace.UILocation"
],
"destination": "Sources panel",
"className": "Sources.SourcesPanel.UILocationRevealer"
},
{
"type": "@Common.Revealer",
"contextTypes": [
"SDK.DebuggerModel.Location"
],
"destination": "Sources panel",
"className": "Sources.SourcesPanel.DebuggerLocationRevealer"
},
{
"type": "@Common.Revealer",
"contextTypes": [
"Workspace.UISourceCode"
],
"destination": "Sources panel",
"className": "Sources.SourcesPanel.UISourceCodeRevealer"
},
{
"type": "@Common.Revealer",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"destination": "Sources panel",
"className": "Sources.SourcesPanel.DebuggerPausedDetailsRevealer"
},
{
"type": "@Sources.SourcesView.EditorAction",
"className": "Sources.InplaceFormatterEditorAction"
},
{
"type": "@Sources.SourcesView.EditorAction",
"className": "Sources.ScriptFormatterEditorAction"
},
{
"type": "@Sources.NavigatorView",
"viewId": "navigator-network",
"className": "Sources.NetworkNavigatorView"
},
{
"type": "@Sources.NavigatorView",
"viewId": "navigator-files",
"className": "Sources.FilesNavigatorView"
},
{
"type": "@Sources.NavigatorView",
"viewId": "navigator-snippets",
"className": "Sources.SnippetsNavigatorView"
},
{
"type": "@Sources.NavigatorView",
"viewId": "navigator-recordings",
"className": "Sources.RecordingsNavigatorView",
"experiment": "recorder"
},
{
"type": "action",
"actionId": "sources.switch-file",
"category": "Sources",
"title": "Switch file",
"className": "Sources.SourcesView.SwitchFileActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"shortcut": "Alt+O"
}
]
},
{
"type": "action",
"actionId": "sources.rename",
"category": "Sources",
"title": "Rename",
"bindings": [
{
"platform": "windows,linux",
"shortcut": "F2"
},
{
"platform": "mac",
"shortcut": "Enter"
}
]
},
{
"type": "setting",
"settingName": "navigatorGroupByFolder",
"settingType": "boolean",
"defaultValue": "true"
},
{
"type": "setting",
"category": "Sources",
"title": "Search in anonymous and content scripts",
"settingName": "searchInAnonymousAndContentScripts",
"settingType": "boolean",
"defaultValue": false,
"options": [
{
"value": true,
"title": "Search in anonymous and content scripts"
},
{
"value": false,
"title": "Do not search in anonymous and content scripts"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Automatically reveal files in sidebar",
"settingName": "autoRevealInNavigator",
"settingType": "boolean",
"defaultValue": false,
"options": [
{
"value": true,
"title": "Automatically reveal files in sidebar"
},
{
"value": false,
"title": "Do not automatically reveal files in sidebar"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Enable JavaScript source maps",
"settingName": "jsSourceMapsEnabled",
"settingType": "boolean",
"defaultValue": true,
"options": [
{
"value": true,
"title": "Enable JavaScript source maps"
},
{
"value": false,
"title": "Disable JavaScript source maps"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Enable tab moves focus",
"settingName": "textEditorTabMovesFocus",
"settingType": "boolean",
"defaultValue": false,
"options": [
{
"value": true,
"title": "Enable tab moves focus"
},
{
"value": false,
"title": "Disable tab moves focus"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Detect indentation",
"settingName": "textEditorAutoDetectIndent",
"settingType": "boolean",
"defaultValue": true,
"options": [
{
"value": true,
"title": "Detect indentation"
},
{
"value": false,
"title": "Do not detect indentation"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Autocompletion",
"settingName": "textEditorAutocompletion",
"settingType": "boolean",
"defaultValue": true,
"options": [
{
"value": true,
"title": "Enable autocompletion"
},
{
"value": false,
"title": "Disable autocompletion"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Bracket matching",
"settingName": "textEditorBracketMatching",
"settingType": "boolean",
"defaultValue": true,
"options": [
{
"value": true,
"title": "Enable bracket matching"
},
{
"value": false,
"title": "Disable bracket matching"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Code folding",
"settingName": "textEditorCodeFolding",
"settingType": "boolean",
"defaultValue": false,
"options": [
{
"value": true,
"title": "Enable code folding"
},
{
"value": false,
"title": "Disable code folding"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Show whitespace characters:",
"settingName": "showWhitespacesInEditor",
"settingType": "enum",
"defaultValue": "original",
"options": [
{
"title": "Do not show whitespace characters",
"text": "None",
"value": "none"
},
{
"title": "Show all whitespace characters",
"text": "All",
"value": "all"
},
{
"title": "Show trailing whitespace characters",
"text": "Trailing",
"value": "trailing"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Display variable values inline while debugging",
"settingName": "inlineVariableValues",
"settingType": "boolean",
"defaultValue": true,
"options": [
{
"value": true,
"title": "Display variable values inline while debugging"
},
{
"value": false,
"title": "Do not display variable values inline while debugging"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Enable CSS source maps",
"settingName": "cssSourceMapsEnabled",
"settingType": "boolean",
"defaultValue": true,
"options": [
{
"value": true,
"title": "Enable CSS source maps"
},
{
"value": false,
"title": "Disable CSS source maps"
}
]
},
{
"type": "setting",
"category": "Sources",
"title": "Allow scrolling past end of file",
"settingName": "allowScrollPastEof",
"settingType": "boolean",
"defaultValue": true,
"options": [
{
"value": true,
"title": "Allow scrolling past end of file"
},
{
"value": false,
"title": "Disallow scrolling past end of file"
}
]
},
{
"type": "action",
"category": "Sources",
"actionId": "sources.close-all",
"className": "Sources.SourcesView.ActionDelegate",
"title": "Close All"
},
{
"type": "action",
"actionId": "sources.jump-to-previous-location",
"category": "Sources",
"title": "Jump to previous editing location",
"className": "Sources.SourcesView.ActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"shortcut": "Alt+Minus"
}
]
},
{
"type": "action",
"actionId": "sources.jump-to-next-location",
"category": "Sources",
"title": "Jump to next editing location",
"className": "Sources.SourcesView.ActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"shortcut": "Alt+Plus"
}
]
},
{
"type": "action",
"actionId": "sources.close-editor-tab",
"category": "Sources",
"title": "Close the active tab",
"className": "Sources.SourcesView.ActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"shortcut": "Alt+w"
},
{
"shortcut": "Ctrl+W",
"keybindSets": [
"vsCode"
]
},
{
"platform": "windows",
"shortcut": "Ctrl+F4",
"keybindSets": [
"vsCode"
]
}
]
},
{
"type": "action",
"actionId": "sources.go-to-line",
"category": "Sources",
"title": "Go to line",
"className": "Sources.SourcesView.ActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"shortcut": "Ctrl+g",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
}
]
},
{
"type": "action",
"actionId": "sources.go-to-member",
"category": "Sources",
"title": "Go to a function declaration/rule set",
"className": "Sources.SourcesView.ActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+Shift+o",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
},
{
"platform": "mac",
"shortcut": "Meta+Shift+o",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
},
{
"platform": "mac",
"shortcut": "Meta+T",
"keybindSets": [
"vsCode"
]
},
{
"platform": "windows,linux",
"shortcut": "Ctrl+T",
"keybindSets": [
"vsCode"
]
},
{
"shortcut": "F12",
"keybindSets": [
"vsCode"
]
}
]
},
{
"type": "action",
"actionId": "debugger.toggle-breakpoint",
"category": "Debugger",
"title": "Toggle breakpoint",
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+b"
},
{
"platform": "mac",
"shortcut": "Meta+b"
},
{
"shortcut": "F9",
"keybindSets": [
"vsCode"
]
}
]
},
{
"type": "action",
"actionId": "debugger.toggle-breakpoint-enabled",
"category": "Debugger",
"title": "Toggle breakpoint enabled",
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+Shift+b"
},
{
"platform": "mac",
"shortcut": "Meta+Shift+b"
}
]
},
{
"type": "action",
"actionId": "debugger.breakpoint-input-window",
"category": "Debugger",
"title": "Toggle breakpoint input window",
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+Alt+b"
},
{
"platform": "mac",
"shortcut": "Meta+Alt+b"
}
]
},
{
"type": "action",
"actionId": "sources.save",
"category": "Sources",
"title": "Save",
"className": "Sources.SourcesView.ActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+s",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
},
{
"platform": "mac",
"shortcut": "Meta+s",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
}
]
},
{
"type": "action",
"actionId": "sources.save-all",
"category": "Sources",
"title": "Save all",
"className": "Sources.SourcesView.ActionDelegate",
"contextTypes": [
"Sources.SourcesView"
],
"bindings": [
{
"platform": "windows,linux",
"shortcut": "Ctrl+Shift+s"
},
{
"platform": "mac",
"shortcut": "Meta+Alt+s"
},
{
"platform": "windows,linux",
"shortcut": "Ctrl+K S",
"keybindSets": [
"vsCode"
]
},
{
"platform": "mac",
"shortcut": "Meta+Alt+S",
"keybindSets": [
"vsCode"
]
}
]
},
{
"type": "action",
"category": "Sources",
"actionId": "sources.create-snippet",
"className": "Sources.ActionDelegate",
"title": "Create new snippet"
},
{
"type": "action",
"category": "Sources",
"actionId": "sources.add-folder-to-workspace",
"className": "Sources.ActionDelegate",
"iconClass": "largeicon-add",
"title": "Add folder to workspace",
"condition": "!sources.hide_add_folder"
},
{
"type": "@UI.ToolbarItem.Provider",
"actionId": "sources.add-folder-to-workspace",
"location": "files-navigator-toolbar",
"showLabel": true,
"condition": "!sources.hide_add_folder"
},
{
"type": "@UI.ViewLocationResolver",
"name": "navigator-view",
"category": "Sources",
"className": "Sources.SourcesPanel"
},
{
"type": "@UI.ViewLocationResolver",
"name": "sources.sidebar-top",
"category": "Sources",
"className": "Sources.SourcesPanel"
},
{
"type": "@UI.ViewLocationResolver",
"name": "sources.sidebar-bottom",
"category": "Sources",
"className": "Sources.SourcesPanel"
},
{
"type": "@UI.ViewLocationResolver",
"name": "sources.sidebar-tabs",
"category": "Sources",
"className": "Sources.SourcesPanel"
},
{
"type": "@UI.ContextMenu.Provider",
"actionId": "sources.open-memory-inspector",
"className": "Sources.ScopeChainSidebarPane.OpenLinearMemoryInspector",
"experiment": "wasmDWARFDebugging",
"title": "Open memory inspector",
"contextTypes": [
"ObjectUI.ObjectPropertyTreeElement"
]
},
{
"type": "@UI.ContextFlavorListener",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"className": "Sources.JavaScriptBreakpointsSidebarPane"
},
{
"type": "@UI.ContextFlavorListener",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"className": "Sources.CallStackSidebarPane"
},
{
"type": "@UI.ContextFlavorListener",
"contextTypes": [
"SDK.DebuggerModel.CallFrame"
],
"className": "Sources.ScopeChainSidebarPane"
},
{
"type": "action",
"category": "Debugger",
"actionId": "debugger.previous-call-frame",
"className": "Sources.CallStackSidebarPane.ActionDelegate",
"title": "Previous call frame",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"bindings": [
{
"shortcut": "Ctrl+,"
}
]
},
{
"type": "action",
"category": "Debugger",
"actionId": "debugger.next-call-frame",
"className": "Sources.CallStackSidebarPane.ActionDelegate",
"title": "Next call frame",
"contextTypes": [
"SDK.DebuggerPausedDetails"
],
"bindings": [
{
"shortcut": "Ctrl+."
}
]
},
{
"type": "action",
"actionId": "sources.search",
"title": "Search",
"className": "Sources.SearchSourcesView.ActionDelegate",
"category": "Sources",
"bindings": [
{
"platform": "mac",
"shortcut": "Meta+Alt+F",
"keybindSets": [
"devToolsDefault"
]
},
{
"platform": "windows,linux",
"shortcut": "Ctrl+Shift+F",
"keybindSets": [
"devToolsDefault",
"vsCode"
]
},
{
"platform": "windows,linux",
"shortcut": "Ctrl+Shift+J",
"keybindSets": [
"vsCode"
]
},
{
"platform": "mac",
"shortcut": "Meta+Shift+F",
"keybindSets": [
"vsCode"
]
},
{
"platform": "mac",
"shortcut": "Meta+Shift+J",
"keybindSets": [
"vsCode"
]
}
]
},
{
"type": "context-menu-item",
"location": "mainMenu/default",
"actionId": "sources.search"
},
{
"type": "action",
"actionId": "sources.increment-css",
"category": "Sources",
"title": "Increment CSS unit by 1",
"bindings": [
{
"shortcut": "Alt+Up"
}
]
},
{
"type": "action",
"actionId": "sources.increment-css-by-ten",
"title": "Increment CSS unit by 10",
"category": "Sources",
"bindings": [
{
"shortcut": "Alt+PageUp"
}
]
},
{
"type": "action",
"actionId": "sources.decrement-css",
"category": "Sources",
"title": "Decrement CSS unit by 1",
"bindings": [
{
"shortcut": "Alt+Down"
}
]
},
{
"type": "action",
"actionId": "sources.decrement-css-by-ten",
"category": "Sources",
"title": "Decrement CSS unit by 10",
"bindings": [
{
"shortcut": "Alt+PageDown"
}
]
}
],
"dependencies": [
"components",
"search",
"source_frame",
"snippets",
"extensions",
"persistence",
"quick_open",
"inline_editor",
"color_picker",
"event_listeners",
"object_ui",
"formatter",
"coverage",
"linear_memory_inspector"
],
"modules": [
"sources-legacy.js"
],
"resources": [
"breakpointEditDialog.css",
"callStackSidebarPane.css",
"debuggerPausedMessage.css",
"javaScriptBreakpointsSidebarPane.css",
"navigatorTree.css",
"navigatorView.css",
"scopeChainSidebarPane.css",
"sourcesPanel.css",
"sourcesView.css",
"threadsSidebarPane.css",
"watchExpressionsSidebarPane.css",
"dialog.css"
]
}