chrome-devtools-frontend 1.0.941208 → 1.0.943182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/WATCHLISTS +1 -1
- package/config/gni/all_devtools_files.gni +0 -64
- package/config/gni/devtools_grd_files.gni +54 -19
- package/config/gni/devtools_image_files.gni +1 -3
- package/front_end/.eslintrc.js +11 -1
- package/front_end/Images/src/{feedback_thin_16x16_icon.svg → survey_feedback_icon.svg} +1 -1
- package/front_end/Tests.js +1 -32
- package/front_end/core/common/Color.ts +5 -0
- package/front_end/core/i18n/locales/en-US.json +17 -29
- package/front_end/core/i18n/locales/en-XL.json +17 -29
- package/front_end/core/sdk/CPUProfilerModel.ts +7 -9
- package/front_end/core/sdk/ConsoleModel.ts +27 -33
- package/front_end/core/sdk/DebuggerModel.ts +4 -14
- package/front_end/core/sdk/sdk-meta.ts +17 -3
- package/front_end/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.ts +1 -1
- package/front_end/entrypoints/devtools_app/devtools_app.js +1 -1
- package/front_end/entrypoints/devtools_app/devtools_app.json +1 -12
- package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/inspector/inspector.js +1 -1
- package/front_end/entrypoints/inspector/inspector.json +1 -3
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +2 -3
- package/front_end/entrypoints/js_app/js_app.js +1 -1
- package/front_end/entrypoints/js_app/js_app.json +1 -3
- package/front_end/entrypoints/main/MainImpl.ts +26 -0
- package/front_end/entrypoints/main/main-meta.ts +1 -2
- package/front_end/entrypoints/ndb_app/ndb_app.js +1 -1
- package/front_end/entrypoints/node_app/node_app-meta.ts +0 -2
- package/front_end/entrypoints/node_app/node_app.js +1 -1
- package/front_end/entrypoints/node_app/node_app.json +1 -3
- package/front_end/entrypoints/node_main/node_main-meta.ts +0 -1
- package/front_end/entrypoints/shell/shell.js +0 -11
- package/front_end/entrypoints/shell/shell.json +1 -5
- package/front_end/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.ts +1 -1
- package/front_end/entrypoints/worker_app/worker_app.js +1 -1
- package/front_end/entrypoints/worker_app/worker_app.json +1 -7
- package/front_end/generated/InspectorBackendCommands.js +19 -0
- package/front_end/generated/protocol-mapping.d.ts +31 -1
- package/front_end/generated/protocol-proxy-api.d.ts +34 -2
- package/front_end/generated/protocol.d.ts +81 -6
- package/front_end/legacy_test_runner/bindings_test_runner/IsolatedFilesystemTestRunner.js +2 -2
- package/front_end/legacy_test_runner/console_test_runner/console_test_runner.js +5 -1
- package/front_end/legacy_test_runner/legacy_test_runner.ts +10 -1
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +3 -1
- package/front_end/models/formatter/SourceFormatter.ts +0 -10
- package/front_end/models/persistence/persistence-meta.ts +0 -1
- package/front_end/models/workspace/UISourceCode.ts +9 -42
- package/front_end/panels/accessibility/accessibility-meta.ts +0 -1
- package/front_end/panels/animation/AnimationTimeline.ts +3 -3
- package/front_end/panels/animation/animation-meta.ts +0 -1
- package/front_end/panels/application/ApplicationPanelSidebar.ts +3 -3
- package/front_end/panels/application/BackForwardCacheStrings.ts +3 -1
- package/front_end/panels/application/application-meta.ts +0 -4
- package/front_end/panels/application/components/EndpointsGrid.ts +1 -1
- package/front_end/panels/application/components/ReportsGrid.ts +1 -1
- package/front_end/panels/application/components/stackTraceRow.css +8 -0
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +1 -2
- package/front_end/panels/changes/changes-meta.ts +0 -1
- package/front_end/panels/console/ConsolePinPane.ts +23 -32
- package/front_end/panels/console/ConsoleViewMessage.ts +8 -1
- package/front_end/panels/console/console-meta.ts +0 -1
- package/front_end/panels/console_counters/console_counters-meta.ts +0 -1
- package/front_end/panels/coverage/CoverageDecorationManager.ts +4 -5
- package/front_end/panels/coverage/CoverageView.ts +2 -105
- package/front_end/panels/coverage/coverage-meta.ts +0 -1
- package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +11 -56
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -8
- package/front_end/panels/css_overview/css_overview-meta.ts +0 -1
- package/front_end/panels/developer_resources/developer_resources-meta.ts +0 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +4 -9
- package/front_end/panels/elements/components/StylePropertyEditor.ts +2 -0
- package/front_end/panels/elements/components/adornerSettingsPane.css +0 -4
- package/front_end/panels/elements/elements-meta.ts +0 -1
- package/front_end/panels/emulation/DeviceModeToolbar.ts +3 -1
- package/front_end/panels/emulation/DeviceModeView.ts +2 -1
- package/front_end/panels/emulation/InspectedPagePlaceholder.ts +3 -1
- package/front_end/panels/emulation/MediaQueryInspector.ts +3 -1
- package/front_end/panels/emulation/emulation-meta.ts +2 -5
- package/front_end/panels/help/help-meta.ts +0 -1
- package/front_end/panels/input/input-meta.ts +0 -1
- package/front_end/panels/issues/issues-meta.ts +0 -3
- package/front_end/panels/js_profiler/js_profiler-meta.ts +0 -4
- package/front_end/panels/layers/layers-meta.ts +0 -4
- package/front_end/panels/lighthouse/LighthousePanel.ts +2 -4
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -4
- package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -1
- package/front_end/panels/lighthouse/lighthouseStartView.css +4 -0
- package/front_end/panels/lighthouse/module.json +0 -6
- package/front_end/panels/media/media-meta.ts +0 -4
- package/front_end/panels/mobile_throttling/mobile_throttling-meta.ts +0 -1
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +2 -1
- package/front_end/panels/network/network-meta.ts +1 -5
- package/front_end/panels/performance_monitor/performance_monitor-meta.ts +0 -1
- package/front_end/panels/profiler/CPUProfileView.ts +10 -3
- package/front_end/panels/profiler/profiler-meta.ts +0 -3
- package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -1
- package/front_end/panels/screencast/screencast-meta.ts +0 -4
- package/front_end/panels/security/security-meta.ts +0 -4
- package/front_end/panels/sensors/sensors-meta.ts +0 -1
- package/front_end/panels/settings/emulation/emulation-meta.ts +0 -1
- package/front_end/panels/settings/settings-meta.ts +0 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +16 -30
- package/front_end/panels/sources/CSSPlugin.ts +310 -331
- package/front_end/panels/sources/CallStackSidebarPane.ts +28 -34
- package/front_end/panels/sources/CoveragePlugin.ts +121 -6
- package/front_end/panels/sources/DebuggerPlugin.ts +1166 -1243
- package/front_end/panels/sources/EditingLocationHistoryManager.ts +71 -101
- package/front_end/panels/sources/GoToLineQuickOpen.ts +4 -3
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +26 -23
- package/front_end/panels/sources/Plugin.ts +20 -4
- package/front_end/panels/sources/ProfilePlugin.ts +185 -0
- package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/ScriptOriginPlugin.ts +0 -10
- package/front_end/panels/sources/SnippetsPlugin.ts +1 -10
- package/front_end/panels/sources/SourcesPanel.ts +6 -5
- package/front_end/panels/sources/SourcesView.ts +10 -8
- package/front_end/panels/sources/TabbedEditorContainer.ts +31 -27
- package/front_end/panels/sources/UISourceCodeFrame.ts +335 -470
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +3 -2
- package/front_end/panels/sources/sources-legacy.ts +0 -6
- package/front_end/panels/sources/sources-meta.ts +2 -6
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/panels/timeline/timeline-meta.ts +2 -9
- package/front_end/panels/web_audio/web_audio-meta.ts +0 -1
- package/front_end/panels/webauthn/webauthn-meta.ts +0 -1
- package/front_end/third_party/codemirror.next/bundle.ts +9 -13
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/javascript.js +2 -2
- package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -6
- package/front_end/third_party/codemirror.next/chunk/php.js +2 -6
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/wast.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/xml.js +2 -2
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +279 -198
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
- package/front_end/third_party/codemirror.next/package.json +13 -11
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +1128 -1158
- package/front_end/third_party/lighthouse/locales/ar-XB.json +211 -79
- package/front_end/third_party/lighthouse/locales/ar.json +213 -81
- package/front_end/third_party/lighthouse/locales/bg.json +211 -79
- package/front_end/third_party/lighthouse/locales/ca.json +212 -80
- package/front_end/third_party/lighthouse/locales/cs.json +211 -79
- package/front_end/third_party/lighthouse/locales/da.json +211 -79
- package/front_end/third_party/lighthouse/locales/de.json +211 -79
- package/front_end/third_party/lighthouse/locales/el.json +213 -81
- package/front_end/third_party/lighthouse/locales/en-GB.json +211 -79
- package/front_end/third_party/lighthouse/locales/en-US.json +186 -75
- package/front_end/third_party/lighthouse/locales/en-XA.json +211 -79
- package/front_end/third_party/lighthouse/locales/en-XL.json +186 -75
- package/front_end/third_party/lighthouse/locales/es-419.json +211 -79
- package/front_end/third_party/lighthouse/locales/es.json +212 -80
- package/front_end/third_party/lighthouse/locales/fi.json +211 -79
- package/front_end/third_party/lighthouse/locales/fil.json +211 -79
- package/front_end/third_party/lighthouse/locales/fr.json +211 -79
- package/front_end/third_party/lighthouse/locales/he.json +212 -80
- package/front_end/third_party/lighthouse/locales/hi.json +214 -82
- package/front_end/third_party/lighthouse/locales/hr.json +211 -79
- package/front_end/third_party/lighthouse/locales/hu.json +211 -79
- package/front_end/third_party/lighthouse/locales/id.json +211 -79
- package/front_end/third_party/lighthouse/locales/it.json +211 -79
- package/front_end/third_party/lighthouse/locales/ja.json +211 -79
- package/front_end/third_party/lighthouse/locales/ko.json +211 -79
- package/front_end/third_party/lighthouse/locales/lt.json +211 -79
- package/front_end/third_party/lighthouse/locales/lv.json +214 -82
- package/front_end/third_party/lighthouse/locales/nl.json +211 -79
- package/front_end/third_party/lighthouse/locales/no.json +211 -79
- package/front_end/third_party/lighthouse/locales/pl.json +211 -79
- package/front_end/third_party/lighthouse/locales/pt-PT.json +211 -79
- package/front_end/third_party/lighthouse/locales/pt.json +211 -79
- package/front_end/third_party/lighthouse/locales/ro.json +212 -80
- package/front_end/third_party/lighthouse/locales/ru.json +211 -79
- package/front_end/third_party/lighthouse/locales/sk.json +211 -79
- package/front_end/third_party/lighthouse/locales/sl.json +211 -79
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +211 -79
- package/front_end/third_party/lighthouse/locales/sr.json +211 -79
- package/front_end/third_party/lighthouse/locales/sv.json +211 -79
- package/front_end/third_party/lighthouse/locales/ta.json +218 -86
- package/front_end/third_party/lighthouse/locales/te.json +251 -119
- package/front_end/third_party/lighthouse/locales/th.json +211 -79
- package/front_end/third_party/lighthouse/locales/tr.json +211 -79
- package/front_end/third_party/lighthouse/locales/uk.json +212 -80
- package/front_end/third_party/lighthouse/locales/vi.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh-HK.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh-TW.json +211 -79
- package/front_end/third_party/lighthouse/locales/zh.json +211 -79
- package/front_end/third_party/lighthouse/report/bundle.d.ts +72 -34
- package/front_end/third_party/lighthouse/report/bundle.js +698 -492
- package/front_end/third_party/lighthouse/report-assets/report-generator.js +1 -2
- package/front_end/third_party/lighthouse/report-assets/report.js +40 -35
- package/front_end/third_party/lighthouse/report-assets/standalone-template.html +2 -4
- package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +60 -68
- package/front_end/ui/components/data_grid/dataGrid.css +12 -10
- package/front_end/ui/components/docs/component_docs.ts +14 -0
- package/front_end/ui/components/docs/create_breadcrumbs.ts +1 -1
- package/front_end/ui/components/docs/css_overview/start_view.html +25 -0
- package/front_end/ui/components/docs/css_overview/start_view.ts +14 -0
- package/front_end/ui/components/docs/icon_button/basic.ts +3 -3
- package/front_end/ui/components/docs/toggle_dark_mode.ts +1 -0
- package/front_end/ui/components/docs/toggle_fonts.ts +2 -0
- package/front_end/ui/components/helpers/get-stylesheet.ts +0 -15
- package/front_end/ui/components/linear_memory_inspector/linear_memory_inspector-meta.ts +1 -2
- package/front_end/ui/components/markdown_view/MarkdownImagesMap.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/text_editor/TextEditor.ts +79 -36
- package/front_end/ui/components/text_editor/config.ts +42 -26
- package/front_end/ui/components/text_editor/javascript.ts +2 -3
- package/front_end/ui/components/text_editor/position.ts +17 -0
- package/front_end/ui/components/text_editor/text_editor.ts +1 -0
- package/front_end/ui/components/text_editor/theme.ts +5 -1
- package/front_end/ui/components/tree_outline/TreeOutline.ts +63 -8
- package/front_end/ui/components/tree_outline/TreeOutlineUtils.ts +8 -6
- package/front_end/ui/legacy/Dialog.ts +3 -1
- package/front_end/ui/legacy/DropTarget.ts +2 -1
- package/front_end/ui/legacy/EmptyWidget.ts +2 -1
- package/front_end/ui/legacy/FilterBar.ts +2 -1
- package/front_end/ui/legacy/GlassPane.ts +4 -2
- package/front_end/ui/legacy/Infobar.ts +5 -8
- package/front_end/ui/legacy/InspectorView.ts +6 -1
- package/front_end/ui/legacy/ListWidget.ts +2 -1
- package/front_end/ui/legacy/PopoverHelper.ts +2 -1
- package/front_end/ui/legacy/ProgressIndicator.ts +2 -1
- package/front_end/ui/legacy/RemoteDebuggingTerminatedScreen.ts +2 -1
- package/front_end/ui/legacy/ReportView.ts +2 -1
- package/front_end/ui/legacy/RootView.ts +2 -1
- package/front_end/ui/legacy/SearchableView.ts +2 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +11 -7
- package/front_end/ui/legacy/SoftContextMenu.ts +3 -2
- package/front_end/ui/legacy/SoftDropDown.ts +4 -2
- package/front_end/ui/legacy/SplitWidget.ts +2 -1
- package/front_end/ui/legacy/SuggestBox.ts +2 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -1
- package/front_end/ui/legacy/TargetCrashedScreen.ts +2 -1
- package/front_end/ui/legacy/TextPrompt.ts +2 -1
- package/front_end/ui/legacy/Toolbar.ts +3 -2
- package/front_end/ui/legacy/Treeoutline.ts +4 -3
- package/front_end/ui/legacy/UIUtils.ts +17 -14
- package/front_end/ui/legacy/ViewManager.ts +2 -1
- package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +1 -2
- package/front_end/ui/legacy/components/inline_editor/cssAngle.css +4 -0
- package/front_end/ui/legacy/components/object_ui/JavaScriptREPL.ts +2 -2
- package/front_end/ui/legacy/components/object_ui/object_ui-meta.ts +0 -4
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +35 -131
- package/front_end/ui/legacy/components/perf_ui/perf_ui-meta.ts +0 -3
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
- package/front_end/ui/legacy/components/quick_open/quick_open-meta.ts +2 -3
- package/front_end/ui/legacy/components/source_frame/BinaryResourceViewFactory.ts +3 -6
- package/front_end/ui/legacy/components/source_frame/FontView.ts +4 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +4 -1
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +4 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +21 -15
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +501 -252
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +7 -2
- package/front_end/ui/legacy/components/source_frame/source_frame-legacy.ts +0 -11
- package/front_end/ui/legacy/components/source_frame/source_frame.ts +0 -2
- package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +2 -0
- package/front_end/ui/legacy/components/text_editor/cmdevtools.css +3 -1
- package/front_end/ui/legacy/components/text_editor/module.json +0 -3
- package/front_end/ui/legacy/components/utils/Linkifier.ts +7 -15
- package/front_end/ui/legacy/radioButton.css +1 -13
- package/front_end/ui/legacy/textButton.css +5 -4
- package/front_end/ui/legacy/themeColors.css +36 -0
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +7 -9
- package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +2 -2
- package/front_end/ui/legacy/utils/inject-core-styles.ts +7 -4
- package/package.json +1 -1
- package/scripts/check_gn.js +0 -35
- package/scripts/eslint_rules/lib/es_modules_import.js +15 -8
- package/scripts/eslint_rules/tests/es_modules_import_test.js +8 -0
- package/front_end/Images/radioDot-dark-theme.png +0 -0
- package/front_end/Images/radioDot.png +0 -0
- package/front_end/emulated_devices/module.json +0 -6
- package/front_end/panels/application/module.json +0 -6
- package/front_end/panels/emulation/module.json +0 -11
- package/front_end/panels/issues/module.json +0 -6
- package/front_end/panels/js_profiler/module.json +0 -5
- package/front_end/panels/layer_viewer/module.json +0 -5
- package/front_end/panels/layers/module.json +0 -5
- package/front_end/panels/media/module.json +0 -5
- package/front_end/panels/network/module.json +0 -5
- package/front_end/panels/profiler/module.json +0 -5
- package/front_end/panels/screencast/module.json +0 -6
- package/front_end/panels/security/module.json +0 -5
- package/front_end/panels/timeline/module.json +0 -7
- package/front_end/third_party/lighthouse/report-assets/report.css +0 -1774
- package/front_end/ui/legacy/components/source_frame/SourcesTextEditor.ts +0 -1030
- package/front_end/ui/legacy/components/source_frame/messagesPopover.css +0 -32
- package/front_end/ui/legacy/components/source_frame/module.json +0 -14
- package/front_end/ui/legacy/module.json +0 -41
|
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Emulation from './emulation.js';
|
|
11
10
|
|
|
12
11
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -47,11 +46,11 @@ const UIStrings = {
|
|
|
47
46
|
/**
|
|
48
47
|
*@description Command that shows measuring rulers next to the emulated device.
|
|
49
48
|
*/
|
|
50
|
-
showRulers: 'Show rulers',
|
|
49
|
+
showRulers: 'Show rulers in the Device Mode toolbar',
|
|
51
50
|
/**
|
|
52
51
|
*@description Command that hides measuring rulers next to the emulated device.
|
|
53
52
|
*/
|
|
54
|
-
hideRulers: 'Hide rulers',
|
|
53
|
+
hideRulers: 'Hide rulers in the Device Mode toolbar',
|
|
55
54
|
/**
|
|
56
55
|
*@description Command that shows a frame (like a picture frame) around the emulated device.
|
|
57
56
|
*/
|
|
@@ -69,8 +68,6 @@ let loadedEmulationModule: (typeof Emulation|undefined);
|
|
|
69
68
|
|
|
70
69
|
async function loadEmulationModule(): Promise<typeof Emulation> {
|
|
71
70
|
if (!loadedEmulationModule) {
|
|
72
|
-
// Side-effect import resources in module.json
|
|
73
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/emulation');
|
|
74
71
|
loadedEmulationModule = await import('./emulation.js');
|
|
75
72
|
}
|
|
76
73
|
return loadedEmulationModule;
|
|
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Help from './help.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -6,7 +6,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Input from './input.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -7,7 +7,6 @@ import * as Root from '../../core/root/root.js';
|
|
|
7
7
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
8
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
11
10
|
import type * as Issues from './issues.js';
|
|
12
11
|
|
|
13
12
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -35,8 +34,6 @@ let loadedIssuesModule: (typeof Issues|undefined);
|
|
|
35
34
|
|
|
36
35
|
async function loadIssuesModule(): Promise<typeof Issues> {
|
|
37
36
|
if (!loadedIssuesModule) {
|
|
38
|
-
// Side-effect import resources in module.json
|
|
39
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/issues');
|
|
40
37
|
loadedIssuesModule = await import('./issues.js');
|
|
41
38
|
}
|
|
42
39
|
return loadedIssuesModule;
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import * as Root from '../../core/root/root.js';
|
|
7
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
7
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
8
|
import type * as Profiler from '../profiler/profiler.js';
|
|
11
9
|
|
|
12
10
|
const UIStrings = {
|
|
@@ -30,8 +28,6 @@ let loadedProfilerModule: (typeof Profiler|undefined);
|
|
|
30
28
|
|
|
31
29
|
async function loadProfilerModule(): Promise<typeof Profiler> {
|
|
32
30
|
if (!loadedProfilerModule) {
|
|
33
|
-
// Side-effect import resources in module.json
|
|
34
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/profiler');
|
|
35
31
|
loadedProfilerModule = await import('../profiler/profiler.js');
|
|
36
32
|
}
|
|
37
33
|
return loadedProfilerModule;
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import * as Root from '../../core/root/root.js';
|
|
7
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
7
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
8
|
import type * as Layers from './layers.js';
|
|
11
9
|
|
|
12
10
|
const UIStrings = {
|
|
@@ -26,8 +24,6 @@ let loadedLayersModule: (typeof Layers|undefined);
|
|
|
26
24
|
|
|
27
25
|
async function loadLayersModule(): Promise<typeof Layers> {
|
|
28
26
|
if (!loadedLayersModule) {
|
|
29
|
-
// Side-effect import resources in module.json
|
|
30
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/layers');
|
|
31
27
|
loadedLayersModule = await import('./layers.js');
|
|
32
28
|
}
|
|
33
29
|
return loadedLayersModule;
|
|
@@ -7,8 +7,6 @@ import * as Host from '../../core/host/host.js';
|
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import * as EmulationModel from '../../models/emulation/emulation.js';
|
|
10
|
-
/* eslint-disable rulesdir/es_modules_import */
|
|
11
|
-
import reportStyles from '../../third_party/lighthouse/report-assets/report.css.js';
|
|
12
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
11
|
import * as Emulation from '../emulation/emulation.js';
|
|
14
12
|
|
|
@@ -263,7 +261,6 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
|
263
261
|
|
|
264
262
|
const reportContainer = this.auditResultsElement.createChild('div', 'lh-vars lh-root lh-devtools');
|
|
265
263
|
|
|
266
|
-
// @ts-ignore: Second argument will soon be required.
|
|
267
264
|
const dom = new LighthouseReport.DOM(this.auditResultsElement.ownerDocument as Document, reportContainer);
|
|
268
265
|
const renderer = new LighthouseReportRenderer(dom) as LighthouseReport.ReportRenderer;
|
|
269
266
|
|
|
@@ -451,8 +448,9 @@ export class LighthousePanel extends UI.Panel.Panel {
|
|
|
451
448
|
const inspectedURL = await this.controller.getInspectedURL();
|
|
452
449
|
await resourceTreeModel.navigate(inspectedURL);
|
|
453
450
|
}
|
|
451
|
+
|
|
454
452
|
wasShown(): void {
|
|
455
453
|
super.wasShown();
|
|
456
|
-
this.registerCSSFiles([lighthousePanelStyles
|
|
454
|
+
this.registerCSSFiles([lighthousePanelStyles]);
|
|
457
455
|
}
|
|
458
456
|
}
|
|
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as Host from '../../core/host/host.js';
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as Platform from '../../core/platform/platform.js';
|
|
9
|
-
import * as Root from '../../core/root/root.js';
|
|
10
9
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
10
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
12
11
|
import * as LighthouseReport from '../../third_party/lighthouse/report/report.js';
|
|
@@ -202,9 +201,7 @@ export class LighthouseReportUIFeatures extends LighthouseReport.ReportUIFeature
|
|
|
202
201
|
if (!printWindow) {
|
|
203
202
|
return;
|
|
204
203
|
}
|
|
205
|
-
|
|
206
|
-
style.textContent = Root.Runtime.cachedResources.get('third_party/lighthouse/report-assets/report.css') || '';
|
|
207
|
-
printWindow.document.head.appendChild(style);
|
|
204
|
+
|
|
208
205
|
printWindow.document.body.replaceWith(clonedReport);
|
|
209
206
|
// Linkified nodes are shadow elements, which aren't exposed via `cloneNode`.
|
|
210
207
|
await LighthouseReportRenderer.linkifyNodeDetails(clonedReport as HTMLElement);
|
|
@@ -6,7 +6,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as Lighthouse from './lighthouse.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"dependencies": [
|
|
3
|
-
"panels/emulation",
|
|
4
|
-
"panels/timeline",
|
|
5
|
-
"ui/legacy"
|
|
6
|
-
],
|
|
7
2
|
"resources": [
|
|
8
3
|
"../../third_party/lighthouse/report-assets/standalone-template.html",
|
|
9
|
-
"../../third_party/lighthouse/report-assets/report.css",
|
|
10
4
|
"../../third_party/lighthouse/report-assets/report.js"
|
|
11
5
|
]
|
|
12
6
|
}
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import * as Root from '../../core/root/root.js';
|
|
7
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
7
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
8
|
import type * as Media from './media.js';
|
|
11
9
|
|
|
12
10
|
const UIStrings = {
|
|
@@ -30,8 +28,6 @@ let loadedMediaModule: (typeof Media|undefined);
|
|
|
30
28
|
|
|
31
29
|
async function loadMediaModule(): Promise<typeof Media> {
|
|
32
30
|
if (!loadedMediaModule) {
|
|
33
|
-
// Side-effect import resources in module.json
|
|
34
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/media');
|
|
35
31
|
loadedMediaModule = await import('./media.js');
|
|
36
32
|
}
|
|
37
33
|
return loadedMediaModule;
|
|
@@ -6,7 +6,6 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as MobileThrottling from './mobile_throttling.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -331,7 +331,8 @@ export class ResourceWebSocketFrameView extends UI.Widget.VBox {
|
|
|
331
331
|
|
|
332
332
|
this.splitWidget.setSidebarWidget(new SourceFrame.ResourceSourceFrame.ResourceSourceFrame(
|
|
333
333
|
TextUtils.StaticContentProvider.StaticContentProvider.fromString(
|
|
334
|
-
this.request.url(), Common.ResourceType.resourceTypes.WebSocket, content)
|
|
334
|
+
this.request.url(), Common.ResourceType.resourceTypes.WebSocket, content),
|
|
335
|
+
''));
|
|
335
336
|
}
|
|
336
337
|
|
|
337
338
|
private onFrameDeselected(): void {
|
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
8
8
|
import * as Workspace from '../../models/workspace/workspace.js';
|
|
9
9
|
import * as NetworkForward from '../../panels/network/forward/forward.js';
|
|
10
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
11
11
|
|
|
12
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
13
12
|
import type * as Network from './network.js';
|
|
14
13
|
|
|
15
|
-
import * as i18n from '../../core/i18n/i18n.js';
|
|
16
14
|
const UIStrings = {
|
|
17
15
|
/**
|
|
18
16
|
*@description Command for showing the 'Network' tool
|
|
@@ -117,8 +115,6 @@ let loadedNetworkModule: (typeof Network|undefined);
|
|
|
117
115
|
|
|
118
116
|
async function loadNetworkModule(): Promise<typeof Network> {
|
|
119
117
|
if (!loadedNetworkModule) {
|
|
120
|
-
// Side-effect import resources in module.json
|
|
121
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/network');
|
|
122
118
|
loadedNetworkModule = await import('./network.js');
|
|
123
119
|
}
|
|
124
120
|
return loadedNetworkModule;
|
|
@@ -149,9 +149,17 @@ export class CPUProfileType extends ProfileType {
|
|
|
149
149
|
super(CPUProfileType.TypeId, i18nString(UIStrings.recordJavascriptCpuProfile));
|
|
150
150
|
this.recording = false;
|
|
151
151
|
|
|
152
|
+
const targetManager = SDK.TargetManager.TargetManager.instance();
|
|
153
|
+
const profilerModels = targetManager.models(SDK.CPUProfilerModel.CPUProfilerModel);
|
|
154
|
+
for (const model of profilerModels) {
|
|
155
|
+
for (const message of model.registeredConsoleProfileMessages) {
|
|
156
|
+
this.consoleProfileFinished(message);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
152
160
|
SDK.TargetManager.TargetManager.instance().addModelListener(
|
|
153
161
|
SDK.CPUProfilerModel.CPUProfilerModel, SDK.CPUProfilerModel.Events.ConsoleProfileFinished,
|
|
154
|
-
this.consoleProfileFinished, this);
|
|
162
|
+
event => this.consoleProfileFinished(event.data), this);
|
|
155
163
|
}
|
|
156
164
|
|
|
157
165
|
profileBeingRecorded(): ProfileHeader|null {
|
|
@@ -187,8 +195,7 @@ export class CPUProfileType extends ProfileType {
|
|
|
187
195
|
return i18nString(UIStrings.cpuProfilesShow);
|
|
188
196
|
}
|
|
189
197
|
|
|
190
|
-
consoleProfileFinished(
|
|
191
|
-
const data = event.data;
|
|
198
|
+
consoleProfileFinished(data: SDK.CPUProfilerModel.ProfileFinishedData): void {
|
|
192
199
|
const profile = new CPUProfileHeader(data.cpuProfilerModel, this, data.title);
|
|
193
200
|
profile.setProtocolProfile(data.cpuProfile);
|
|
194
201
|
this.addProfile(profile);
|
|
@@ -8,7 +8,6 @@ import * as Root from '../../core/root/root.js';
|
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
12
11
|
import type * as Profiler from './profiler.js';
|
|
13
12
|
|
|
14
13
|
let loadedProfilerModule: (typeof Profiler|undefined);
|
|
@@ -57,8 +56,6 @@ const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined
|
|
|
57
56
|
|
|
58
57
|
async function loadProfilerModule(): Promise<typeof Profiler> {
|
|
59
58
|
if (!loadedProfilerModule) {
|
|
60
|
-
// Side-effect import resources in module.json
|
|
61
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/profiler');
|
|
62
59
|
loadedProfilerModule = await import('./profiler.js');
|
|
63
60
|
}
|
|
64
61
|
return loadedProfilerModule;
|
|
@@ -6,7 +6,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
6
6
|
import * as Root from '../../core/root/root.js';
|
|
7
7
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
8
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
9
|
import type * as ProtocolMonitor from './protocol_monitor.js';
|
|
11
10
|
|
|
12
11
|
const UIStrings = {
|
|
@@ -3,18 +3,14 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
|
-
import * as Root from '../../core/root/root.js';
|
|
7
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
7
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
8
|
import type * as Screencast from './screencast.js';
|
|
11
9
|
|
|
12
10
|
let loadedScreencastModule: (typeof Screencast|undefined);
|
|
13
11
|
|
|
14
12
|
async function loadScreencastModule(): Promise<typeof Screencast> {
|
|
15
13
|
if (!loadedScreencastModule) {
|
|
16
|
-
// Side-effect import rescreencast in module.json
|
|
17
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/screencast');
|
|
18
14
|
loadedScreencastModule = await import('./screencast.js');
|
|
19
15
|
}
|
|
20
16
|
return loadedScreencastModule;
|
|
@@ -3,10 +3,8 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import * as Root from '../../core/root/root.js';
|
|
7
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
8
7
|
|
|
9
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
10
8
|
import type * as Security from './security.js';
|
|
11
9
|
|
|
12
10
|
const UIStrings = {
|
|
@@ -26,8 +24,6 @@ let loadedSecurityModule: (typeof Security|undefined);
|
|
|
26
24
|
|
|
27
25
|
async function loadSecurityModule(): Promise<typeof Security> {
|
|
28
26
|
if (!loadedSecurityModule) {
|
|
29
|
-
// Side-effect import resources in module.json
|
|
30
|
-
await Root.Runtime.Runtime.instance().loadModulePromise('panels/security');
|
|
31
27
|
loadedSecurityModule = await import('./security.js');
|
|
32
28
|
}
|
|
33
29
|
return loadedSecurityModule;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import * as Common from '../../core/common/common.js';
|
|
6
6
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
9
8
|
import type * as Sensors from './sensors.js';
|
|
10
9
|
|
|
11
10
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
@@ -8,7 +8,6 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
8
8
|
import * as Root from '../../core/root/root.js';
|
|
9
9
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
10
10
|
|
|
11
|
-
// eslint-disable-next-line rulesdir/es_modules_import
|
|
12
11
|
import type * as Settings from './settings.js';
|
|
13
12
|
|
|
14
13
|
const UIStrings = {
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import * as CodeMirror from '../../third_party/codemirror.next/codemirror.next.js';
|
|
7
|
+
import * as TextEditor from '../../ui/components/text_editor/text_editor.js';
|
|
8
8
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
9
9
|
|
|
10
10
|
import breakpointEditDialogStyles from './breakpointEditDialog.css.js';
|
|
@@ -60,37 +60,23 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
60
60
|
private readonly typeSelector: UI.Toolbar.ToolbarComboBox;
|
|
61
61
|
private placeholderCompartment: CodeMirror.Compartment;
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
constructor(
|
|
64
64
|
editorLineNumber: number,
|
|
65
65
|
oldCondition: string,
|
|
66
66
|
preferLogpoint: boolean,
|
|
67
67
|
onFinish: (arg0: {committed: boolean, condition: string}) => Promise<void>,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
) {
|
|
69
|
+
super(true);
|
|
70
|
+
|
|
71
71
|
const editorConfig = [
|
|
72
|
-
|
|
72
|
+
CodeMirror.javascript.javascriptLanguage,
|
|
73
73
|
TextEditor.Config.baseConfiguration(oldCondition || ''),
|
|
74
74
|
TextEditor.Config.autocompletion,
|
|
75
75
|
CodeMirror.EditorView.lineWrapping,
|
|
76
76
|
TextEditor.Config.showCompletionHint,
|
|
77
|
-
|
|
77
|
+
TextEditor.JavaScript.completion(),
|
|
78
78
|
TextEditor.JavaScript.argumentHints(),
|
|
79
79
|
];
|
|
80
|
-
return new BreakpointEditDialog(
|
|
81
|
-
editorLineNumber, oldCondition, preferLogpoint, onFinish, TextEditor, CodeMirror, editorConfig);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
constructor(
|
|
85
|
-
editorLineNumber: number,
|
|
86
|
-
oldCondition: string,
|
|
87
|
-
preferLogpoint: boolean,
|
|
88
|
-
onFinish: (arg0: {committed: boolean, condition: string}) => Promise<void>,
|
|
89
|
-
modTextEditor: typeof TextEditor,
|
|
90
|
-
readonly modCodeMirror: typeof CodeMirror,
|
|
91
|
-
editorConfig: CodeMirror.Extension,
|
|
92
|
-
) {
|
|
93
|
-
super(true);
|
|
94
80
|
|
|
95
81
|
this.onFinish = onFinish;
|
|
96
82
|
this.finished = false;
|
|
@@ -119,7 +105,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
119
105
|
|
|
120
106
|
const content = oldCondition || '';
|
|
121
107
|
const finishIfComplete = (view: CodeMirror.EditorView): boolean => {
|
|
122
|
-
if (
|
|
108
|
+
if (TextEditor.JavaScript.isExpressionComplete(view.state)) {
|
|
123
109
|
this.finishEditing(true, this.editor.state.doc.toString());
|
|
124
110
|
return true;
|
|
125
111
|
}
|
|
@@ -135,8 +121,8 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
135
121
|
run: finishIfComplete,
|
|
136
122
|
},
|
|
137
123
|
{
|
|
138
|
-
...modCodeMirror.standardKeymap.find(binding => binding.key === 'Enter') as CodeMirror.KeyBinding,
|
|
139
124
|
key: 'Shift-Enter',
|
|
125
|
+
run: CodeMirror.insertNewlineAndIndent,
|
|
140
126
|
},
|
|
141
127
|
{
|
|
142
128
|
key: 'Escape',
|
|
@@ -147,17 +133,17 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
147
133
|
},
|
|
148
134
|
];
|
|
149
135
|
|
|
150
|
-
this.placeholderCompartment = new
|
|
136
|
+
this.placeholderCompartment = new CodeMirror.Compartment();
|
|
151
137
|
|
|
152
138
|
const editorWrapper = this.contentElement.appendChild(document.createElement('div'));
|
|
153
139
|
editorWrapper.classList.add('condition-editor');
|
|
154
140
|
|
|
155
|
-
this.editor = new
|
|
141
|
+
this.editor = new TextEditor.TextEditor.TextEditor(CodeMirror.EditorState.create({
|
|
156
142
|
doc: content,
|
|
157
143
|
selection: {anchor: 0, head: content.length},
|
|
158
144
|
extensions: [
|
|
159
145
|
this.placeholderCompartment.of(this.getPlaceholder()),
|
|
160
|
-
|
|
146
|
+
CodeMirror.keymap.of(keymap),
|
|
161
147
|
editorConfig,
|
|
162
148
|
],
|
|
163
149
|
}));
|
|
@@ -185,7 +171,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
185
171
|
if (type === BreakpointType.Breakpoint) {
|
|
186
172
|
this.finishEditing(true, '');
|
|
187
173
|
} else {
|
|
188
|
-
this.editor.
|
|
174
|
+
this.editor.dispatch({effects: this.placeholderCompartment.reconfigure(this.getPlaceholder())});
|
|
189
175
|
this.updateTooltip();
|
|
190
176
|
}
|
|
191
177
|
}
|
|
@@ -198,10 +184,10 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
198
184
|
private getPlaceholder(): CodeMirror.Extension {
|
|
199
185
|
const type = this.breakpointType;
|
|
200
186
|
if (type === BreakpointType.Conditional) {
|
|
201
|
-
return
|
|
187
|
+
return CodeMirror.placeholder(i18nString(UIStrings.expressionToCheckBeforePausingEg));
|
|
202
188
|
}
|
|
203
189
|
if (type === BreakpointType.Logpoint) {
|
|
204
|
-
return
|
|
190
|
+
return CodeMirror.placeholder(i18nString(UIStrings.logMessageEgXIsX));
|
|
205
191
|
}
|
|
206
192
|
return [];
|
|
207
193
|
}
|