mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-08 20:58:24 +08:00
Before, pressing 'H' or 'Ctrl+L' on ANY panel would perform the action (hide selected element, clear console). This CL makes both shortcuts execute only when the respective panel/view is showing. This allows 'Ctrl+L' to focus Omnibox when Console is not visible. Bug: 915676 Change-Id: Ie5ef04786fcd240a393524f429cb45a3951cd5d0 Reviewed-on: https://chromium-review.googlesource.com/c/1405701 Reviewed-by: Joel Einbinder <einbinder@chromium.org> Commit-Queue: Erik Luo <luoe@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#622211} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: a858d1d9aa7a2043f87f538d6d61aa174c3fbe01
218 lines
6.3 KiB
JSON
218 lines
6.3 KiB
JSON
{
|
|
"extensions": [
|
|
{
|
|
"type": "view",
|
|
"location": "panel",
|
|
"id": "console",
|
|
"title": "Console",
|
|
"order": 20,
|
|
"className": "Console.ConsolePanel"
|
|
},
|
|
{
|
|
"type": "view",
|
|
"location": "drawer-view",
|
|
"id": "console-view",
|
|
"title": "Console",
|
|
"persistence": "permanent",
|
|
"order": 0,
|
|
"className": "Console.ConsolePanel.WrapperView"
|
|
},
|
|
{
|
|
"type": "@Common.Revealer",
|
|
"contextTypes": [
|
|
"Common.Console"
|
|
],
|
|
"className": "Console.ConsolePanel.ConsoleRevealer"
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "console.show",
|
|
"className": "Console.ConsoleView.ActionDelegate",
|
|
"bindings": [
|
|
{
|
|
"shortcut": "Ctrl+`"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "action",
|
|
"category": "Console",
|
|
"contextTypes": [
|
|
"Console.ConsoleView"
|
|
],
|
|
"actionId": "console.clear",
|
|
"title": "Clear console",
|
|
"iconClass": "largeicon-clear",
|
|
"className": "Console.ConsoleView.ActionDelegate",
|
|
"bindings": [
|
|
{
|
|
"platform": "windows,linux",
|
|
"shortcut": "Ctrl+L"
|
|
},
|
|
{
|
|
"platform": "mac",
|
|
"shortcut": "Ctrl+L Meta+K"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "action",
|
|
"category": "Console",
|
|
"actionId": "console.clear.history",
|
|
"title": "Clear console history",
|
|
"className": "Console.ConsoleView.ActionDelegate"
|
|
},
|
|
{
|
|
"type": "action",
|
|
"category": "Console",
|
|
"actionId": "console.create-pin",
|
|
"iconClass": "largeicon-visibility",
|
|
"className": "Console.ConsoleView.ActionDelegate",
|
|
"title": "Create live expression"
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Console",
|
|
"title": "Hide network messages",
|
|
"settingName": "hideNetworkMessages",
|
|
"settingType": "boolean",
|
|
"defaultValue": false,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Hide network messages"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Show network messages"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Console",
|
|
"title": "Selected context only",
|
|
"settingName": "selectedContextFilterEnabled",
|
|
"settingType": "boolean",
|
|
"storageType": "session",
|
|
"defaultValue": false,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Only show messages from the current context (top, iframe, worker, extension)"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Show messages from all contexts"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Console",
|
|
"title": "Log XMLHttpRequests",
|
|
"settingName": "monitoringXHREnabled",
|
|
"settingType": "boolean",
|
|
"defaultValue": false
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Console",
|
|
"title": "Show timestamps",
|
|
"settingName": "consoleTimestampsEnabled",
|
|
"settingType": "boolean",
|
|
"defaultValue": false,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Show timestamps"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Hide timestamps"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Console",
|
|
"title": "Autocomplete from history",
|
|
"settingName": "consoleHistoryAutocomplete",
|
|
"settingType": "boolean",
|
|
"defaultValue": true,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Autocomplete from history"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Do not autocomplete from history"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Console",
|
|
"title": "Group similar",
|
|
"settingName": "consoleGroupSimilar",
|
|
"settingType": "boolean",
|
|
"defaultValue": true,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Group similar messages in console"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Do not group similar messages in console"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Console",
|
|
"title": "Eager evaluation",
|
|
"settingName": "consoleEagerEval",
|
|
"settingType": "boolean",
|
|
"defaultValue": true,
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Eagerly evaluate console prompt text"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Do not eagerly evaluate console prompt text"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"dependencies": [
|
|
"components",
|
|
"data_grid",
|
|
"object_ui",
|
|
"sdk",
|
|
"product_registry",
|
|
"formatter"
|
|
],
|
|
"scripts": [
|
|
"ConsoleContextSelector.js",
|
|
"ConsoleFilter.js",
|
|
"ConsolePinPane.js",
|
|
"ConsoleSidebar.js",
|
|
"ConsoleViewport.js",
|
|
"ConsoleViewMessage.js",
|
|
"ConsolePrompt.js",
|
|
"ConsoleView.js",
|
|
"ConsolePanel.js"
|
|
],
|
|
"resources": [
|
|
"consoleContextSelector.css",
|
|
"consolePinPane.css",
|
|
"consolePrompt.css",
|
|
"consoleSidebar.css",
|
|
"consoleView.css"
|
|
]
|
|
}
|