chrome-devtools-frontend 1.0.954826 → 1.0.956060
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/.eslintrc.js +1 -0
- package/AUTHORS +1 -0
- package/config/owner/COMMON_OWNERS +2 -2
- package/front_end/.eslintrc.js +1 -11
- package/front_end/core/common/Console.ts +1 -1
- package/front_end/core/common/ResolverBase.ts +1 -1
- package/front_end/core/common/Throttler.ts +1 -1
- package/front_end/core/common/Worker.ts +4 -4
- package/front_end/core/host/InspectorFrontendHost.ts +1 -1
- package/front_end/core/host/ResourceLoader.ts +2 -2
- package/front_end/core/i18n/DevToolsLocale.ts +0 -2
- package/front_end/core/i18n/i18nImpl.ts +0 -2
- package/front_end/core/i18n/locales/en-US.json +3 -0
- package/front_end/core/i18n/locales/en-XL.json +3 -0
- package/front_end/core/sdk/AccessibilityModel.ts +1 -1
- package/front_end/core/sdk/CPUProfilerModel.ts +2 -2
- package/front_end/core/sdk/CPUThrottlingManager.ts +2 -2
- package/front_end/core/sdk/CSSModel.ts +7 -7
- package/front_end/core/sdk/CSSProperty.ts +1 -1
- package/front_end/core/sdk/CSSStyleDeclaration.ts +1 -1
- package/front_end/core/sdk/ChildTargetManager.ts +6 -6
- package/front_end/core/sdk/Connections.ts +2 -2
- package/front_end/core/sdk/ConsoleModel.ts +1 -1
- package/front_end/core/sdk/DOMDebuggerModel.ts +16 -15
- package/front_end/core/sdk/DOMModel.ts +17 -17
- package/front_end/core/sdk/DebuggerModel.ts +24 -24
- package/front_end/core/sdk/EmulationModel.ts +16 -16
- package/front_end/core/sdk/EventBreakpointsModel.ts +2 -2
- package/front_end/core/sdk/IsolateManager.ts +2 -2
- package/front_end/core/sdk/IssuesModel.ts +1 -1
- package/front_end/core/sdk/LogModel.ts +3 -3
- package/front_end/core/sdk/NetworkManager.ts +25 -25
- package/front_end/core/sdk/OverlayModel.ts +23 -23
- package/front_end/core/sdk/PageResourceLoader.ts +1 -1
- package/front_end/core/sdk/PaintProfiler.ts +1 -1
- package/front_end/core/sdk/RemoteObject.ts +2 -2
- package/front_end/core/sdk/Resource.ts +2 -2
- package/front_end/core/sdk/ResourceTreeModel.ts +5 -5
- package/front_end/core/sdk/RuntimeModel.ts +11 -11
- package/front_end/core/sdk/ScreenCaptureModel.ts +3 -3
- package/front_end/core/sdk/ServiceWorkerCacheModel.ts +7 -7
- package/front_end/core/sdk/ServiceWorkerManager.ts +4 -4
- package/front_end/core/sdk/SourceMapManager.ts +1 -1
- package/front_end/core/sdk/TargetManager.ts +2 -2
- package/front_end/core/sdk/TracingManager.ts +1 -1
- package/front_end/entrypoints/heap_snapshot_worker/HeapSnapshotLoader.ts +1 -1
- package/front_end/entrypoints/inspector_main/InspectorMain.ts +4 -4
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +1 -1
- package/front_end/entrypoints/js_app/js_app.ts +2 -2
- package/front_end/entrypoints/main/MainImpl.ts +11 -11
- package/front_end/entrypoints/node_app/NodeMain.ts +6 -6
- package/front_end/entrypoints/worker_app/WorkerMain.ts +1 -1
- package/front_end/generated/ARIAProperties.js +1 -1
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/SupportedCSSProperties.js +15 -15
- package/front_end/generated/protocol.d.ts +13 -0
- package/front_end/global_typings/global_defs.d.ts +0 -1
- package/front_end/models/bindings/BreakpointManager.ts +21 -23
- package/front_end/models/bindings/CSSWorkspaceBinding.ts +3 -3
- package/front_end/models/bindings/CompilerScriptMapping.ts +1 -1
- package/front_end/models/bindings/ContentProviderBasedProject.ts +1 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +2 -2
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +3 -3
- package/front_end/models/bindings/DefaultScriptMapping.ts +1 -1
- package/front_end/models/bindings/FileUtils.ts +5 -5
- package/front_end/models/bindings/IgnoreListManager.ts +4 -4
- package/front_end/models/bindings/LiveLocation.ts +9 -0
- package/front_end/models/bindings/PresentationConsoleMessageHelper.ts +2 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/ResourceScriptMapping.ts +9 -9
- package/front_end/models/bindings/StylesSourceMapping.ts +3 -3
- package/front_end/models/bindings/TempFile.ts +1 -1
- package/front_end/models/emulation/DeviceModeModel.ts +5 -5
- package/front_end/models/emulation/EmulatedDevices.ts +1 -1
- package/front_end/models/extensions/ExtensionPanel.ts +1 -1
- package/front_end/models/extensions/ExtensionServer.ts +8 -8
- package/front_end/models/formatter/SourceFormatter.ts +2 -2
- package/front_end/models/issues_manager/ContrastCheckTrigger.ts +1 -1
- package/front_end/models/issues_manager/DeprecationIssue.ts +7 -7
- package/front_end/models/issues_manager/SourceFrameIssuesManager.ts +3 -3
- package/front_end/models/persistence/Automapping.ts +3 -3
- package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +3 -3
- package/front_end/models/persistence/IsolatedFileSystem.ts +1 -1
- package/front_end/models/persistence/IsolatedFileSystemManager.ts +2 -2
- package/front_end/models/persistence/NetworkPersistenceManager.ts +11 -11
- package/front_end/models/persistence/PersistenceActions.ts +3 -3
- package/front_end/models/persistence/PersistenceImpl.ts +2 -2
- package/front_end/models/persistence/WorkspaceSettingsTab.ts +1 -1
- package/front_end/models/workspace/UISourceCode.ts +2 -2
- package/front_end/models/workspace_diff/WorkspaceDiff.ts +2 -2
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +4 -4
- package/front_end/panels/accessibility/AccessibilityNodeView.ts +3 -3
- package/front_end/panels/accessibility/AccessibilitySidebarView.ts +7 -7
- package/front_end/panels/animation/AnimationModel.ts +6 -6
- package/front_end/panels/animation/AnimationTimeline.ts +3 -3
- package/front_end/panels/animation/AnimationUI.ts +3 -3
- package/front_end/panels/application/AppManifestView.ts +4 -4
- package/front_end/panels/application/ApplicationPanelCacheSection.ts +3 -3
- package/front_end/panels/application/ApplicationPanelSidebar.ts +15 -15
- package/front_end/panels/application/BackgroundServiceModel.ts +3 -3
- package/front_end/panels/application/BackgroundServiceView.ts +3 -3
- package/front_end/panels/application/CookieItemsView.ts +5 -5
- package/front_end/panels/application/DOMStorageItemsView.ts +4 -4
- package/front_end/panels/application/DOMStorageModel.ts +4 -4
- package/front_end/panels/application/DatabaseModel.ts +2 -2
- package/front_end/panels/application/DatabaseQueryView.ts +2 -2
- package/front_end/panels/application/DatabaseTableView.ts +1 -1
- package/front_end/panels/application/IndexedDBModel.ts +11 -11
- package/front_end/panels/application/IndexedDBViews.ts +5 -5
- package/front_end/panels/application/OpenedWindowDetailsView.ts +4 -4
- package/front_end/panels/application/ReportingApiView.ts +1 -1
- package/front_end/panels/application/ResourcesPanel.ts +2 -2
- package/front_end/panels/application/ServiceWorkerCacheViews.ts +7 -7
- package/front_end/panels/application/ServiceWorkersView.ts +15 -15
- package/front_end/panels/application/StorageView.ts +5 -5
- package/front_end/panels/application/TrustTokensTreeElement.ts +1 -1
- package/front_end/panels/application/components/BackForwardCacheStrings.ts +5 -1
- package/front_end/panels/application/components/BackForwardCacheView.ts +4 -4
- package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
- package/front_end/panels/application/components/PermissionsPolicySection.ts +2 -2
- package/front_end/panels/browser_debugger/CategorizedBreakpointsSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/DOMBreakpointsSidebarPane.ts +8 -7
- package/front_end/panels/browser_debugger/ObjectEventListenersSidebarPane.ts +1 -1
- package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +4 -4
- package/front_end/panels/changes/ChangesView.ts +4 -4
- package/front_end/panels/console/ConsoleContextSelector.ts +1 -1
- package/front_end/panels/console/ConsoleFilter.ts +17 -2
- package/front_end/panels/console/ConsoleFormat.ts +5 -4
- package/front_end/panels/console/ConsolePinPane.ts +4 -4
- package/front_end/panels/console/ConsolePrompt.ts +4 -4
- package/front_end/panels/console/ConsoleView.ts +96 -71
- package/front_end/panels/console/ConsoleViewMessage.ts +61 -19
- package/front_end/panels/console/consoleView.css +36 -0
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -2
- package/front_end/panels/coverage/CoverageListView.ts +3 -3
- package/front_end/panels/coverage/CoverageModel.ts +3 -3
- package/front_end/panels/coverage/CoverageView.ts +6 -6
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +3 -3
- package/front_end/panels/css_overview/CSSOverviewModel.ts +2 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesListView.ts +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +1 -1
- package/front_end/panels/elements/AccessibilityTreeView.ts +5 -5
- package/front_end/panels/elements/ClassesPaneWidget.ts +1 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +10 -10
- package/front_end/panels/elements/ComputedStyleWidget.ts +2 -2
- package/front_end/panels/elements/DOMLinkifier.ts +2 -2
- package/front_end/panels/elements/ElementsPanel.ts +19 -19
- package/front_end/panels/elements/ElementsSidebarPane.ts +1 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +26 -25
- package/front_end/panels/elements/ElementsTreeElementHighlighter.ts +1 -1
- package/front_end/panels/elements/ElementsTreeOutline.ts +4 -4
- package/front_end/panels/elements/InspectElementModeController.ts +3 -3
- package/front_end/panels/elements/LayoutSidebarPane.ts +2 -2
- package/front_end/panels/elements/MetricsSidebarPane.ts +2 -2
- package/front_end/panels/elements/StylePropertyHighlighter.ts +1 -1
- package/front_end/panels/elements/StylePropertyTreeElement.ts +16 -16
- package/front_end/panels/elements/StylesSidebarPane.ts +15 -15
- package/front_end/panels/elements/components/AccessibilityTreeNode.ts +1 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +8 -8
- package/front_end/panels/elements/elementsPanel.css +1 -0
- package/front_end/panels/elements/elementsTreeOutline.css +6 -1
- package/front_end/panels/emulation/DeviceModeToolbar.ts +1 -1
- package/front_end/panels/emulation/DeviceModeView.ts +2 -2
- package/front_end/panels/emulation/DeviceModeWrapper.ts +4 -4
- package/front_end/panels/emulation/MediaQueryInspector.ts +3 -3
- package/front_end/panels/event_listeners/EventListenersView.ts +3 -3
- package/front_end/panels/input/InputModel.ts +2 -2
- package/front_end/panels/input/InputTimeline.ts +6 -6
- package/front_end/panels/issues/AffectedCookiesView.ts +2 -2
- package/front_end/panels/issues/AffectedDirectivesView.ts +1 -1
- package/front_end/panels/issues/AffectedElementsView.ts +1 -1
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +1 -1
- package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +1 -1
- package/front_end/panels/issues/IssueView.ts +1 -1
- package/front_end/panels/issues/components/HideIssuesMenu.ts +1 -1
- package/front_end/panels/layer_viewer/LayerDetailsView.ts +1 -1
- package/front_end/panels/layer_viewer/LayerViewHost.ts +1 -1
- package/front_end/panels/layer_viewer/Layers3DView.ts +7 -7
- package/front_end/panels/layer_viewer/PaintProfilerView.ts +1 -1
- package/front_end/panels/layers/LayerPaintProfilerView.ts +3 -3
- package/front_end/panels/layers/LayerTreeModel.ts +4 -4
- package/front_end/panels/layers/LayersPanel.ts +4 -4
- package/front_end/panels/lighthouse/LighthouseController.ts +1 -1
- package/front_end/panels/lighthouse/LighthousePanel.ts +5 -5
- package/front_end/panels/lighthouse/LighthouseProtocolService.ts +1 -1
- package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
- package/front_end/panels/media/MediaModel.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/mobile_throttling/NetworkThrottlingSelector.ts +1 -1
- package/front_end/panels/network/BinaryResourceView.ts +1 -1
- package/front_end/panels/network/BlockedURLsPane.ts +5 -5
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/network/NetworkItemView.ts +2 -2
- package/front_end/panels/network/NetworkLogView.ts +4 -4
- package/front_end/panels/network/NetworkLogViewColumns.ts +1 -1
- package/front_end/panels/network/NetworkPanel.ts +8 -8
- package/front_end/panels/network/NetworkTimeCalculator.ts +1 -1
- package/front_end/panels/network/RequestHeadersView.ts +4 -3
- package/front_end/panels/network/RequestPayloadView.ts +8 -8
- package/front_end/panels/network/RequestPreviewView.ts +1 -1
- package/front_end/panels/network/RequestResponseView.ts +2 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +1 -1
- package/front_end/panels/performance_monitor/PerformanceMonitor.ts +2 -2
- package/front_end/panels/profiler/CPUProfileView.ts +4 -4
- package/front_end/panels/profiler/HeapProfileView.ts +6 -6
- package/front_end/panels/profiler/HeapProfilerPanel.ts +2 -2
- package/front_end/panels/profiler/HeapSnapshotDataGrids.ts +10 -10
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +9 -8
- package/front_end/panels/profiler/HeapSnapshotView.ts +24 -24
- package/front_end/panels/profiler/LiveHeapProfileView.ts +4 -4
- package/front_end/panels/profiler/ProfileSidebarTreeElement.ts +1 -1
- package/front_end/panels/profiler/ProfileView.ts +3 -3
- package/front_end/panels/profiler/ProfilesPanel.ts +3 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -3
- package/front_end/panels/screencast/InputModel.ts +3 -3
- package/front_end/panels/screencast/ScreencastView.ts +10 -10
- package/front_end/panels/search/SearchResultsPane.ts +1 -1
- package/front_end/panels/search/SearchView.ts +2 -2
- package/front_end/panels/security/SecurityModel.ts +1 -1
- package/front_end/panels/security/SecurityPanel.ts +2 -2
- package/front_end/panels/sensors/SensorsView.ts +3 -2
- package/front_end/panels/settings/SettingsScreen.ts +5 -5
- package/front_end/panels/settings/components/SyncSection.ts +1 -1
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +1 -1
- package/front_end/panels/sources/BreakpointEditDialog.ts +2 -2
- package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
- package/front_end/panels/sources/CoveragePlugin.ts +3 -3
- package/front_end/panels/sources/DebuggerPlugin.ts +12 -12
- package/front_end/panels/sources/GoToLineQuickOpen.ts +1 -1
- package/front_end/panels/sources/InplaceFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +3 -3
- package/front_end/panels/sources/NavigatorView.ts +6 -6
- package/front_end/panels/sources/OpenFileQuickOpen.ts +2 -2
- package/front_end/panels/sources/OutlineQuickOpen.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +3 -3
- package/front_end/panels/sources/ScriptFormatterEditorAction.ts +3 -3
- package/front_end/panels/sources/SearchSourcesView.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +9 -9
- package/front_end/panels/sources/SourcesPanel.ts +28 -25
- package/front_end/panels/sources/SourcesSearchScope.ts +2 -2
- package/front_end/panels/sources/SourcesView.ts +4 -4
- package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +2 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +4 -4
- package/front_end/panels/timeline/EventsTimelineTreeView.ts +1 -1
- package/front_end/panels/timeline/TimelineController.ts +1 -1
- package/front_end/panels/timeline/TimelineDetailsView.ts +2 -2
- package/front_end/panels/timeline/TimelineEventOverview.ts +2 -2
- package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +3 -5
- package/front_end/panels/timeline/TimelineFlameChartNetworkDataProvider.ts +4 -7
- package/front_end/panels/timeline/TimelineHistoryManager.ts +1 -1
- package/front_end/panels/timeline/TimelineLayersView.ts +1 -1
- package/front_end/panels/timeline/TimelineLoader.ts +2 -2
- package/front_end/panels/timeline/TimelinePaintProfilerView.ts +4 -4
- package/front_end/panels/timeline/TimelinePanel.ts +10 -10
- package/front_end/panels/timeline/TimelineUIUtils.ts +2 -2
- package/front_end/panels/timeline/components/WebVitalsTimeline.ts +2 -2
- package/front_end/panels/web_audio/WebAudioModel.ts +1 -1
- package/front_end/panels/web_audio/WebAudioView.ts +1 -1
- package/front_end/panels/webauthn/WebauthnPane.ts +7 -7
- package/front_end/ui/components/buttons/Button.ts +10 -10
- package/front_end/ui/components/data_grid/DataGrid.ts +14 -14
- package/front_end/ui/components/docs/tree_outline/basic.ts +2 -2
- package/front_end/ui/components/docs/tree_outline/custom-renderers.ts +1 -1
- package/front_end/ui/components/docs/tree_outline/lazy-children.ts +1 -1
- package/front_end/ui/components/helpers/scheduled-render.ts +1 -1
- package/front_end/ui/components/icon_button/Icon.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorController.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryInspectorPane.ts +5 -2
- package/front_end/ui/components/linkifier/LinkifierImpl.ts +1 -1
- package/front_end/ui/components/panel_feedback/FeedbackButton.ts +1 -1
- package/front_end/ui/components/panel_feedback/PanelFeedback.ts +1 -1
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +3 -3
- package/front_end/ui/components/text_editor/cursor_tooltip.ts +1 -1
- package/front_end/ui/components/text_editor/javascript.ts +2 -2
- package/front_end/ui/components/tree_outline/TreeOutline.ts +8 -8
- package/front_end/ui/legacy/Context.ts +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +1 -1
- package/front_end/ui/legacy/GlassPane.ts +0 -1
- package/front_end/ui/legacy/InspectorView.ts +2 -3
- package/front_end/ui/legacy/PopoverHelper.ts +1 -1
- package/front_end/ui/legacy/ShortcutRegistry.ts +1 -1
- package/front_end/ui/legacy/TabbedPane.ts +2 -2
- package/front_end/ui/legacy/ThrottledWidget.ts +1 -1
- package/front_end/ui/legacy/Toolbar.ts +3 -3
- package/front_end/ui/legacy/Treeoutline.ts +6 -6
- package/front_end/ui/legacy/UIUtils.ts +16 -16
- package/front_end/ui/legacy/ViewManager.ts +9 -9
- package/front_end/ui/legacy/components/color_picker/ContrastOverlay.ts +1 -1
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +7 -7
- package/front_end/ui/legacy/components/color_picker/spectrum.css +5 -2
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +3 -3
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +2 -2
- package/front_end/ui/legacy/components/data_grid/ShowMoreDataGridNode.ts +3 -3
- package/front_end/ui/legacy/components/inline_editor/CSSAngleEditor.ts +1 -1
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +4 -4
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
- package/front_end/ui/legacy/components/object_ui/ObjectPopoverHelper.ts +1 -1
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +11 -11
- package/front_end/ui/legacy/components/perf_ui/FilmStripView.ts +8 -8
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +10 -19
- package/front_end/ui/legacy/components/perf_ui/GCActionDelegate.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +1 -1
- package/front_end/ui/legacy/components/perf_ui/LiveHeapProfile.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/TimelineGrid.ts +2 -4
- package/front_end/ui/legacy/components/perf_ui/TimelineOverviewPane.ts +2 -2
- package/front_end/ui/legacy/components/perf_ui/flameChart.css +8 -0
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -2
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -4
- package/front_end/ui/legacy/components/source_frame/JSONView.ts +0 -1
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -2
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/XMLView.ts +0 -2
- package/front_end/ui/legacy/components/utils/ImagePreview.ts +1 -1
- package/front_end/ui/legacy/components/utils/JSPresentationUtils.ts +1 -1
- package/front_end/ui/legacy/components/utils/Linkifier.ts +5 -5
- package/front_end/ui/legacy/components/utils/TargetDetachedDialog.ts +2 -2
- package/front_end/ui/legacy/tabbedPane.css +1 -0
- package/front_end/ui/legacy/theme_support/theme_support_impl.ts +3 -210
- package/front_end/ui/legacy/toolbar.css +1 -0
- package/package.json +1 -1
- package/scripts/component_server/server.js +2 -2
- package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
- package/front_end/global_typings/intl_display_names.d.ts +0 -111
|
@@ -219,7 +219,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
219
219
|
Math.floor(Math.min(maxImageDimension, dimensions.height)), undefined, this.screencastFrame.bind(this),
|
|
220
220
|
this.screencastVisibilityChanged.bind(this));
|
|
221
221
|
for (const emulationModel of SDK.TargetManager.TargetManager.instance().models(SDK.EmulationModel.EmulationModel)) {
|
|
222
|
-
emulationModel.overrideEmulateTouch(true);
|
|
222
|
+
void emulationModel.overrideEmulateTouch(true);
|
|
223
223
|
}
|
|
224
224
|
if (this.overlayModel) {
|
|
225
225
|
this.overlayModel.setHighlighter(this);
|
|
@@ -233,7 +233,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
233
233
|
this.isCasting = false;
|
|
234
234
|
this.screenCaptureModel.stopScreencast();
|
|
235
235
|
for (const emulationModel of SDK.TargetManager.TargetManager.instance().models(SDK.EmulationModel.EmulationModel)) {
|
|
236
|
-
emulationModel.overrideEmulateTouch(false);
|
|
236
|
+
void emulationModel.overrideEmulateTouch(false);
|
|
237
237
|
}
|
|
238
238
|
if (this.overlayModel) {
|
|
239
239
|
this.overlayModel.setHighlighter(null);
|
|
@@ -263,7 +263,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
263
263
|
this.viewportElement.style.height = metadata.deviceHeight * this.screenZoom + bordersSize + 'px';
|
|
264
264
|
|
|
265
265
|
const data = this.highlightNode ? {node: this.highlightNode, selectorList: undefined} : {clear: true};
|
|
266
|
-
this.updateHighlightInOverlayAndRepaint(data, this.highlightConfig);
|
|
266
|
+
void this.updateHighlightInOverlayAndRepaint(data, this.highlightConfig);
|
|
267
267
|
};
|
|
268
268
|
this.imageElement.src = 'data:image/jpg;base64,' + base64Data;
|
|
269
269
|
}
|
|
@@ -331,7 +331,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
if (event.type === 'mousemove') {
|
|
334
|
-
this.updateHighlightInOverlayAndRepaint({node, selectorList: undefined}, this.inspectModeConfig);
|
|
334
|
+
void this.updateHighlightInOverlayAndRepaint({node, selectorList: undefined}, this.inspectModeConfig);
|
|
335
335
|
this.domModel.overlayModel().nodeHighlightRequested({nodeId: node.id});
|
|
336
336
|
} else if (event.type === 'click') {
|
|
337
337
|
this.domModel.overlayModel().inspectNodeRequested({backendNodeId: node.backendNodeId()});
|
|
@@ -386,7 +386,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
highlightInOverlay(data: SDK.OverlayModel.HighlightData, config: Protocol.Overlay.HighlightConfig|null): void {
|
|
389
|
-
this.updateHighlightInOverlayAndRepaint(data, config);
|
|
389
|
+
void this.updateHighlightInOverlayAndRepaint(data, config);
|
|
390
390
|
}
|
|
391
391
|
|
|
392
392
|
private async updateHighlightInOverlayAndRepaint(
|
|
@@ -417,7 +417,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
this.node = node;
|
|
420
|
-
node.boxModel().then(model => {
|
|
420
|
+
void node.boxModel().then(model => {
|
|
421
421
|
if (!model || !this.pageScaleFactor) {
|
|
422
422
|
this.repaint();
|
|
423
423
|
return;
|
|
@@ -673,7 +673,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
673
673
|
this.navigationForward.addEventListener('click', this.navigateToHistoryEntry.bind(this, 1), false);
|
|
674
674
|
this.navigationReload.addEventListener('click', this.navigateReload.bind(this), false);
|
|
675
675
|
this.navigationUrl.addEventListener('keyup', this.navigationUrlKeyUp.bind(this), true);
|
|
676
|
-
this.requestNavigationHistory();
|
|
676
|
+
void this.requestNavigationHistory();
|
|
677
677
|
this.resourceTreeModel.addEventListener(
|
|
678
678
|
SDK.ResourceTreeModel.Events.MainFrameNavigated, this.requestNavigationHistoryEvent, this);
|
|
679
679
|
this.resourceTreeModel.addEventListener(
|
|
@@ -690,7 +690,7 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
692
|
this.resourceTreeModel.navigateToHistoryEntry(this.historyEntries[newIndex]);
|
|
693
|
-
this.requestNavigationHistory();
|
|
693
|
+
void this.requestNavigationHistory();
|
|
694
694
|
}
|
|
695
695
|
|
|
696
696
|
private navigateReload(): void {
|
|
@@ -717,13 +717,13 @@ export class ScreencastView extends UI.Widget.VBox implements SDK.OverlayModel.H
|
|
|
717
717
|
// encodeURI ensures an encoded URL is always passed to the backend
|
|
718
718
|
// This allows the input field to support both encoded and decoded URLs
|
|
719
719
|
if (this.resourceTreeModel) {
|
|
720
|
-
this.resourceTreeModel.navigate(encodeURI(decodeURI(url)));
|
|
720
|
+
void this.resourceTreeModel.navigate(encodeURI(decodeURI(url)));
|
|
721
721
|
}
|
|
722
722
|
this.canvasElement.focus();
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
private requestNavigationHistoryEvent(): void {
|
|
726
|
-
this.requestNavigationHistory();
|
|
726
|
+
void this.requestNavigationHistory();
|
|
727
727
|
}
|
|
728
728
|
|
|
729
729
|
private async requestNavigationHistory(): Promise<void> {
|
|
@@ -206,7 +206,7 @@ export class SearchResultsTreeElement extends UI.TreeOutline.TreeElement {
|
|
|
206
206
|
searchMatchElement.listItemElement.addEventListener('keydown', event => {
|
|
207
207
|
if (event.key === 'Enter') {
|
|
208
208
|
event.consume(true);
|
|
209
|
-
Common.Revealer.reveal(searchResult.matchRevealable(i));
|
|
209
|
+
void Common.Revealer.reveal(searchResult.matchRevealable(i));
|
|
210
210
|
}
|
|
211
211
|
});
|
|
212
212
|
searchMatchElement.tooltip = lineContent;
|
|
@@ -315,7 +315,7 @@ export class SearchView extends UI.Widget.VBox {
|
|
|
315
315
|
this.progressIndicator = new UI.ProgressIndicator.ProgressIndicator();
|
|
316
316
|
this.searchStarted(this.progressIndicator);
|
|
317
317
|
if (this.searchScope) {
|
|
318
|
-
this.searchScope.performSearch(
|
|
318
|
+
void this.searchScope.performSearch(
|
|
319
319
|
searchConfig, this.progressIndicator, this.onSearchResult.bind(this, this.searchId),
|
|
320
320
|
this.onSearchFinished.bind(this, this.searchId));
|
|
321
321
|
}
|
|
@@ -488,6 +488,6 @@ export class SearchView extends UI.Widget.VBox {
|
|
|
488
488
|
if (!searchConfig.query() || !searchConfig.query().length) {
|
|
489
489
|
return;
|
|
490
490
|
}
|
|
491
|
-
this.startSearch(searchConfig);
|
|
491
|
+
void this.startSearch(searchConfig);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
@@ -49,7 +49,7 @@ export class SecurityModel extends SDK.SDKModel.SDKModel<EventTypes> {
|
|
|
49
49
|
this.dispatcher = new SecurityDispatcher(this);
|
|
50
50
|
this.securityAgent = target.securityAgent();
|
|
51
51
|
target.registerSecurityDispatcher(this.dispatcher);
|
|
52
|
-
this.securityAgent.invoke_enable();
|
|
52
|
+
void this.securityAgent.invoke_enable();
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
resourceTreeModel(): SDK.ResourceTreeModel.ResourceTreeModel {
|
|
@@ -1382,7 +1382,7 @@ export class SecurityMainView extends UI.Widget.VBox {
|
|
|
1382
1382
|
|
|
1383
1383
|
showNetworkFilter(filterKey: string, e: Event): void {
|
|
1384
1384
|
e.consume();
|
|
1385
|
-
Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters(
|
|
1385
|
+
void Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters(
|
|
1386
1386
|
[{filterType: NetworkForward.UIFilter.FilterType.MixedContent, filterValue: filterKey}]));
|
|
1387
1387
|
}
|
|
1388
1388
|
wasShown(): void {
|
|
@@ -1416,7 +1416,7 @@ export class SecurityOriginView extends UI.Widget.VBox {
|
|
|
1416
1416
|
const originNetworkButton = UI.UIUtils.createTextButton(i18nString(UIStrings.viewRequestsInNetworkPanel), event => {
|
|
1417
1417
|
event.consume();
|
|
1418
1418
|
const parsedURL = new Common.ParsedURL.ParsedURL(origin);
|
|
1419
|
-
Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters([
|
|
1419
|
+
void Common.Revealer.reveal(NetworkForward.UIFilter.UIRequestFilter.filters([
|
|
1420
1420
|
{filterType: NetworkForward.UIFilter.FilterType.Domain, filterValue: parsedURL.host},
|
|
1421
1421
|
{filterType: NetworkForward.UIFilter.FilterType.Scheme, filterValue: parsedURL.scheme},
|
|
1422
1422
|
]));
|
|
@@ -533,7 +533,8 @@ export class SensorsView extends UI.Widget.VBox {
|
|
|
533
533
|
this.deviceOrientationSetting.set(this.deviceOrientation.toSetting());
|
|
534
534
|
}
|
|
535
535
|
for (const emulationModel of SDK.TargetManager.TargetManager.instance().models(SDK.EmulationModel.EmulationModel)) {
|
|
536
|
-
emulationModel.emulateDeviceOrientation(
|
|
536
|
+
void emulationModel.emulateDeviceOrientation(
|
|
537
|
+
this.deviceOrientationOverrideEnabled ? this.deviceOrientation : null);
|
|
537
538
|
}
|
|
538
539
|
}
|
|
539
540
|
|
|
@@ -792,7 +793,7 @@ let showActionDelegateInstance: ShowActionDelegate;
|
|
|
792
793
|
|
|
793
794
|
export class ShowActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
794
795
|
handleAction(_context: UI.Context.Context, _actionId: string): boolean {
|
|
795
|
-
UI.ViewManager.ViewManager.instance().showView('sensors');
|
|
796
|
+
void UI.ViewManager.ViewManager.instance().showView('sensors');
|
|
796
797
|
return true;
|
|
797
798
|
}
|
|
798
799
|
static instance(opts: {
|
|
@@ -128,7 +128,7 @@ export class SettingsScreen extends UI.Widget.VBox implements UI.View.ViewLocati
|
|
|
128
128
|
tabbedPane.makeVerticalTabLayout();
|
|
129
129
|
const keyBindsView = UI.ViewManager.ViewManager.instance().view('keybinds');
|
|
130
130
|
if (keyBindsView) {
|
|
131
|
-
keyBindsView.widget().then(widget => {
|
|
131
|
+
void keyBindsView.widget().then(widget => {
|
|
132
132
|
this.keybindsTab = widget as KeybindsSettingsTab;
|
|
133
133
|
});
|
|
134
134
|
}
|
|
@@ -506,14 +506,14 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
506
506
|
handleAction(context: UI.Context.Context, actionId: string): boolean {
|
|
507
507
|
switch (actionId) {
|
|
508
508
|
case 'settings.show':
|
|
509
|
-
SettingsScreen.showSettingsScreen({focusTabHeader: true} as ShowSettingsScreenOptions);
|
|
509
|
+
void SettingsScreen.showSettingsScreen({focusTabHeader: true} as ShowSettingsScreenOptions);
|
|
510
510
|
return true;
|
|
511
511
|
case 'settings.documentation':
|
|
512
512
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.openInNewTab(
|
|
513
513
|
UI.UIUtils.addReferrerToURL('https://developer.chrome.com/docs/devtools/'));
|
|
514
514
|
return true;
|
|
515
515
|
case 'settings.shortcuts':
|
|
516
|
-
SettingsScreen.showSettingsScreen({name: 'keybinds', focusTabHeader: true});
|
|
516
|
+
void SettingsScreen.showSettingsScreen({name: 'keybinds', focusTabHeader: true});
|
|
517
517
|
return true;
|
|
518
518
|
}
|
|
519
519
|
return false;
|
|
@@ -541,7 +541,7 @@ export class Revealer implements Common.Revealer.Revealer {
|
|
|
541
541
|
}
|
|
542
542
|
if (settingRegistration.settingName === setting.name) {
|
|
543
543
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.bringToFront();
|
|
544
|
-
SettingsScreen.showSettingsScreen();
|
|
544
|
+
void SettingsScreen.showSettingsScreen();
|
|
545
545
|
success = true;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
@@ -556,7 +556,7 @@ export class Revealer implements Common.Revealer.Revealer {
|
|
|
556
556
|
const settings = view.settings();
|
|
557
557
|
if (settings && settings.indexOf(setting.name) !== -1) {
|
|
558
558
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.bringToFront();
|
|
559
|
-
SettingsScreen.showSettingsScreen({name: id} as ShowSettingsScreenOptions);
|
|
559
|
+
void SettingsScreen.showSettingsScreen({name: id} as ShowSettingsScreenOptions);
|
|
560
560
|
success = true;
|
|
561
561
|
}
|
|
562
562
|
}
|
|
@@ -58,7 +58,7 @@ export class SyncSection extends HTMLElement {
|
|
|
58
58
|
set data(data: SyncSectionData) {
|
|
59
59
|
this.#syncInfo = data.syncInfo;
|
|
60
60
|
this.#syncSetting = data.syncSetting;
|
|
61
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
61
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
#render(): void {
|
|
@@ -48,7 +48,7 @@ export class SnippetsQuickOpen extends QuickOpen.FilteredListWidget.Provider {
|
|
|
48
48
|
if (itemIndex === null) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
|
-
evaluateScriptSnippet(this.snippets[itemIndex]);
|
|
51
|
+
void evaluateScriptSnippet(this.snippets[itemIndex]);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
notFoundText(_query: string): string {
|
|
@@ -106,7 +106,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
106
106
|
|
|
107
107
|
const content = oldCondition || '';
|
|
108
108
|
const finishIfComplete = (view: CodeMirror.EditorView): boolean => {
|
|
109
|
-
TextEditor.JavaScript.isExpressionComplete(view.state.doc.toString()).then((complete): void => {
|
|
109
|
+
void TextEditor.JavaScript.isExpressionComplete(view.state.doc.toString()).then((complete): void => {
|
|
110
110
|
if (complete) {
|
|
111
111
|
this.finishEditing(true, this.editor.state.doc.toString());
|
|
112
112
|
} else {
|
|
@@ -215,7 +215,7 @@ export class BreakpointEditDialog extends UI.Widget.Widget {
|
|
|
215
215
|
if (this.isLogpoint) {
|
|
216
216
|
condition = BreakpointEditDialog.conditionForLogpoint(condition);
|
|
217
217
|
}
|
|
218
|
-
this.onFinish({committed, condition});
|
|
218
|
+
void this.onFinish({committed, condition});
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
wasShown(): void {
|
|
@@ -169,7 +169,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
private update(): void {
|
|
172
|
-
this.updateThrottler.schedule(() => this.doUpdate());
|
|
172
|
+
void this.updateThrottler.schedule(() => this.doUpdate());
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
private async doUpdate(): Promise<void> {
|
|
@@ -253,7 +253,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
253
253
|
|
|
254
254
|
private refreshItem(item: Item): void {
|
|
255
255
|
this.scheduledForUpdateItems.add(item);
|
|
256
|
-
this.updateItemThrottler.schedule(async () => {
|
|
256
|
+
void this.updateItemThrottler.schedule(async () => {
|
|
257
257
|
const items = Array.from(this.scheduledForUpdateItems);
|
|
258
258
|
this.scheduledForUpdateItems.clear();
|
|
259
259
|
|
|
@@ -388,7 +388,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
388
388
|
if (item.uiLocation) {
|
|
389
389
|
this.appendIgnoreListURLContextMenuItems(contextMenu, item.uiLocation.uiSourceCode);
|
|
390
390
|
}
|
|
391
|
-
contextMenu.show();
|
|
391
|
+
void contextMenu.show();
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
private onClick(event: Event): void {
|
|
@@ -414,7 +414,7 @@ export class CallStackSidebarPane extends UI.View.SimpleView implements UI.Conte
|
|
|
414
414
|
}
|
|
415
415
|
this.refreshItem(item);
|
|
416
416
|
} else {
|
|
417
|
-
Common.Revealer.reveal(uiLocation);
|
|
417
|
+
void Common.Revealer.reveal(uiLocation);
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
|
|
@@ -51,7 +51,7 @@ export class CoveragePlugin extends Plugin {
|
|
|
51
51
|
this.infoInToolbar = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.clickToShowCoveragePanel));
|
|
52
52
|
this.infoInToolbar.setSecondary();
|
|
53
53
|
this.infoInToolbar.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, () => {
|
|
54
|
-
UI.ViewManager.ViewManager.instance().showView('coverage');
|
|
54
|
+
void UI.ViewManager.ViewManager.instance().showView('coverage');
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
const mainTarget = SDK.TargetManager.TargetManager.instance().mainTarget();
|
|
@@ -135,7 +135,7 @@ export class CoveragePlugin extends Plugin {
|
|
|
135
135
|
|
|
136
136
|
private startDecoUpdate(editor: TextEditor.TextEditor.TextEditor): void {
|
|
137
137
|
const manager = this.getCoverageManager();
|
|
138
|
-
(manager ? manager.usageByLine(this.uiSourceCode) : Promise.resolve([])).then(usageByLine => {
|
|
138
|
+
void (manager ? manager.usageByLine(this.uiSourceCode) : Promise.resolve([])).then(usageByLine => {
|
|
139
139
|
const enabled = Boolean(editor.state.field(coverageState, false));
|
|
140
140
|
if (!usageByLine.length) {
|
|
141
141
|
if (enabled) {
|
|
@@ -196,7 +196,7 @@ function coverageGutter(url: string): CodeMirror.Extension {
|
|
|
196
196
|
|
|
197
197
|
domEventHandlers: {
|
|
198
198
|
click() {
|
|
199
|
-
UI.ViewManager.ViewManager.instance()
|
|
199
|
+
void UI.ViewManager.ViewManager.instance()
|
|
200
200
|
.showView('coverage')
|
|
201
201
|
.then(() => {
|
|
202
202
|
const view = UI.ViewManager.ViewManager.instance().view('coverage');
|
|
@@ -244,7 +244,7 @@ export class DebuggerPlugin extends Plugin {
|
|
|
244
244
|
|
|
245
245
|
if (!Root.Runtime.experiments.isEnabled('sourcesPrettyPrint')) {
|
|
246
246
|
this.prettyPrintInfobar = null;
|
|
247
|
-
this.detectMinified();
|
|
247
|
+
void this.detectMinified();
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
|
|
@@ -333,9 +333,9 @@ export class DebuggerPlugin extends Plugin {
|
|
|
333
333
|
}
|
|
334
334
|
}, console.error);
|
|
335
335
|
if (!this.muted) {
|
|
336
|
-
this.refreshBreakpoints();
|
|
336
|
+
void this.refreshBreakpoints();
|
|
337
337
|
}
|
|
338
|
-
this.callFrameChanged();
|
|
338
|
+
void this.callFrameChanged();
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
static accepts(uiSourceCode: Workspace.UISourceCode.UISourceCode): boolean {
|
|
@@ -738,7 +738,7 @@ export class DebuggerPlugin extends Plugin {
|
|
|
738
738
|
if (this.executionLocation && this.controlDown &&
|
|
739
739
|
UI.KeyboardShortcut.KeyboardShortcut.eventHasCtrlEquivalentKey(event)) {
|
|
740
740
|
if (!this.continueToLocations) {
|
|
741
|
-
this.showContinueToLocations();
|
|
741
|
+
void this.showContinueToLocations();
|
|
742
742
|
}
|
|
743
743
|
}
|
|
744
744
|
}
|
|
@@ -779,7 +779,7 @@ export class DebuggerPlugin extends Plugin {
|
|
|
779
779
|
if (state && this.executionLocation) {
|
|
780
780
|
this.controlTimeout = window.setTimeout(() => {
|
|
781
781
|
if (this.executionLocation && this.controlDown) {
|
|
782
|
-
this.showContinueToLocations();
|
|
782
|
+
void this.showContinueToLocations();
|
|
783
783
|
}
|
|
784
784
|
}, 150);
|
|
785
785
|
} else {
|
|
@@ -1224,7 +1224,7 @@ export class DebuggerPlugin extends Plugin {
|
|
|
1224
1224
|
const editorLocation = editor.toLineColumn(position);
|
|
1225
1225
|
const uiLocation =
|
|
1226
1226
|
this.transformer.editorLocationToUILocation(editorLocation.lineNumber, editorLocation.columnNumber);
|
|
1227
|
-
this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, condition, enabled);
|
|
1227
|
+
void this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, condition, enabled);
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
@@ -1234,7 +1234,7 @@ export class DebuggerPlugin extends Plugin {
|
|
|
1234
1234
|
const forBreakpoints = this.breakpoints;
|
|
1235
1235
|
const decorations = await this.computeBreakpointDecoration(this.editor.state, forBreakpoints);
|
|
1236
1236
|
if (this.breakpoints === forBreakpoints &&
|
|
1237
|
-
(decorations.gutter.size || this.editor.state.field(breakpointMarkers)
|
|
1237
|
+
(decorations.gutter.size || this.editor.state.field(breakpointMarkers, false)?.gutter.size)) {
|
|
1238
1238
|
this.editor.dispatch({effects: setBreakpointDeco.of(decorations)});
|
|
1239
1239
|
}
|
|
1240
1240
|
}
|
|
@@ -1268,7 +1268,7 @@ export class DebuggerPlugin extends Plugin {
|
|
|
1268
1268
|
const editorLocation = this.editor.editor.posAtDOM(event.target as unknown as HTMLElement);
|
|
1269
1269
|
const line = this.editor.state.doc.lineAt(editorLocation);
|
|
1270
1270
|
const uiLocation = this.transformer.editorLocationToUILocation(line.number - 1, editorLocation - line.from);
|
|
1271
|
-
this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, '', true);
|
|
1271
|
+
void this.setBreakpoint(uiLocation.lineNumber, uiLocation.columnNumber, '', true);
|
|
1272
1272
|
}
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
@@ -1303,7 +1303,7 @@ export class DebuggerPlugin extends Plugin {
|
|
|
1303
1303
|
i18nString(UIStrings.neverPauseHere),
|
|
1304
1304
|
this.setBreakpoint.bind(this, uiLocation.lineNumber, uiLocation.columnNumber, 'false', true));
|
|
1305
1305
|
}
|
|
1306
|
-
contextMenu.show();
|
|
1306
|
+
void contextMenu.show();
|
|
1307
1307
|
}
|
|
1308
1308
|
|
|
1309
1309
|
private updateScriptFiles(): void {
|
|
@@ -1415,7 +1415,7 @@ export class DebuggerPlugin extends Plugin {
|
|
|
1415
1415
|
if (this.muted || event.button !== 0 || event.altKey || event.ctrlKey || event.metaKey) {
|
|
1416
1416
|
return false;
|
|
1417
1417
|
}
|
|
1418
|
-
this.toggleBreakpoint(line, event.shiftKey);
|
|
1418
|
+
void this.toggleBreakpoint(line, event.shiftKey);
|
|
1419
1419
|
return true;
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
@@ -1488,9 +1488,9 @@ export class DebuggerPlugin extends Plugin {
|
|
|
1488
1488
|
const decorations =
|
|
1489
1489
|
this.computeExecutionDecorations(this.editor.state, editorLocation.lineNumber, editorLocation.columnNumber);
|
|
1490
1490
|
this.editor.dispatch({effects: executionLine.update.of(decorations)});
|
|
1491
|
-
this.updateValueDecorations();
|
|
1491
|
+
void this.updateValueDecorations();
|
|
1492
1492
|
if (this.controlDown) {
|
|
1493
|
-
this.showContinueToLocations();
|
|
1493
|
+
void this.showContinueToLocations();
|
|
1494
1494
|
}
|
|
1495
1495
|
} else {
|
|
1496
1496
|
this.editor.dispatch({
|
|
@@ -82,7 +82,7 @@ export class GoToLineQuickOpen extends QuickOpen.FilteredListWidget.Provider {
|
|
|
82
82
|
if (!position) {
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
|
-
Common.Revealer.reveal(uiSourceCode.uiLocation(position.line - 1, position.column - 1));
|
|
85
|
+
void Common.Revealer.reveal(uiSourceCode.uiLocation(position.line - 1, position.column - 1));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
updateGoToLineStrings(query: string): void {
|
|
@@ -101,10 +101,10 @@ export class InplaceFormatterEditorAction implements EditorAction {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
if (uiSourceCode.isDirty()) {
|
|
104
|
-
this.contentLoaded(uiSourceCode, uiSourceCode.workingCopy());
|
|
104
|
+
void this.contentLoaded(uiSourceCode, uiSourceCode.workingCopy());
|
|
105
105
|
} else {
|
|
106
|
-
uiSourceCode.requestContent().then(deferredContent => {
|
|
107
|
-
this.contentLoaded((uiSourceCode as Workspace.UISourceCode.UISourceCode), deferredContent.content || '');
|
|
106
|
+
void uiSourceCode.requestContent().then(deferredContent => {
|
|
107
|
+
void this.contentLoaded((uiSourceCode as Workspace.UISourceCode.UISourceCode), deferredContent.content || '');
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
}
|
|
@@ -246,7 +246,7 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
if (breakpoints.some(breakpoint => breakpoint.isSelected)) {
|
|
249
|
-
UI.ViewManager.ViewManager.instance().showView('sources.jsBreakpoints');
|
|
249
|
+
void UI.ViewManager.ViewManager.instance().showView('sources.jsBreakpoints');
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
this.list.element.classList.toggle(
|
|
@@ -415,7 +415,7 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
|
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
if (uiLocation) {
|
|
418
|
-
Common.Revealer.reveal(uiLocation);
|
|
418
|
+
void Common.Revealer.reveal(uiLocation);
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
421
|
|
|
@@ -463,7 +463,7 @@ export class JavaScriptBreakpointsSidebarPane extends UI.ThrottledWidget.Throttl
|
|
|
463
463
|
const removeOtherTitle = i18nString(UIStrings.removeOtherBreakpoints);
|
|
464
464
|
contextMenu.defaultSection().appendItem(
|
|
465
465
|
removeOtherTitle, this.removeOtherBreakpoints.bind(this, new Set(breakpoints)));
|
|
466
|
-
contextMenu.show();
|
|
466
|
+
void contextMenu.show();
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
private toggleAllBreakpointsInFile(element: Element, toggleState: boolean): void {
|
|
@@ -232,7 +232,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
|
232
232
|
}
|
|
233
233
|
contextMenu.viewSection().appendItem(searchLabel, () => {
|
|
234
234
|
if (path) {
|
|
235
|
-
SearchSourcesView.openSearch(`file:${path.trim()}`);
|
|
235
|
+
void SearchSourcesView.openSearch(`file:${path.trim()}`);
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
}
|
|
@@ -691,7 +691,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
|
691
691
|
|
|
692
692
|
sourceSelected(uiSourceCode: Workspace.UISourceCode.UISourceCode, focusSource: boolean): void {
|
|
693
693
|
this.lastSelectedUISourceCode = uiSourceCode;
|
|
694
|
-
Common.Revealer.reveal(uiSourceCode, !focusSource);
|
|
694
|
+
void Common.Revealer.reveal(uiSourceCode, !focusSource);
|
|
695
695
|
}
|
|
696
696
|
|
|
697
697
|
private removeUISourceCode(uiSourceCode: Workspace.UISourceCode.UISourceCode): void {
|
|
@@ -775,7 +775,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
|
775
775
|
relativePath.pop();
|
|
776
776
|
path = relativePath.join('/');
|
|
777
777
|
}
|
|
778
|
-
this.create(project, path, uiSourceCode);
|
|
778
|
+
void this.create(project, path, uiSourceCode);
|
|
779
779
|
}
|
|
780
780
|
|
|
781
781
|
private handleContextMenuRename(node: NavigatorUISourceCodeTreeNode): void {
|
|
@@ -813,7 +813,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
|
813
813
|
i18nString(UIStrings.delete), this.handleContextMenuDelete.bind(this, uiSourceCode));
|
|
814
814
|
}
|
|
815
815
|
|
|
816
|
-
contextMenu.show();
|
|
816
|
+
void contextMenu.show();
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
private async handleDeleteOverrides(node: NavigatorTreeNode): Promise<void> {
|
|
@@ -884,7 +884,7 @@ export class NavigatorView extends UI.Widget.VBox implements SDK.TargetManager.O
|
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
|
|
887
|
-
contextMenu.show();
|
|
887
|
+
void contextMenu.show();
|
|
888
888
|
}
|
|
889
889
|
|
|
890
890
|
rename(node: NavigatorUISourceCodeTreeNode, creatingNewUISourceCode: boolean): void {
|
|
@@ -1409,7 +1409,7 @@ export class NavigatorUISourceCodeTreeNode extends NavigatorTreeNode {
|
|
|
1409
1409
|
if (this.treeElement) {
|
|
1410
1410
|
this.treeElement.title = newTitle;
|
|
1411
1411
|
}
|
|
1412
|
-
this.uiSourceCodeInternal.rename(newTitle).then(renameCallback.bind(this));
|
|
1412
|
+
void this.uiSourceCodeInternal.rename(newTitle).then(renameCallback.bind(this));
|
|
1413
1413
|
return;
|
|
1414
1414
|
}
|
|
1415
1415
|
afterEditing.call(this, true);
|
|
@@ -38,9 +38,9 @@ export class OpenFileQuickOpen extends FilteredUISourceCodeListProvider {
|
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
if (typeof lineNumber === 'number') {
|
|
41
|
-
Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, columnNumber));
|
|
41
|
+
void Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, columnNumber));
|
|
42
42
|
} else {
|
|
43
|
-
Common.Revealer.reveal(uiSourceCode);
|
|
43
|
+
void Common.Revealer.reveal(uiSourceCode);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -107,7 +107,7 @@ export class OutlineQuickOpen extends QuickOpen.FilteredListWidget.Provider {
|
|
|
107
107
|
}
|
|
108
108
|
const lineNumber = this.items[itemIndex].line;
|
|
109
109
|
if (!isNaN(lineNumber) && lineNumber >= 0) {
|
|
110
|
-
Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, this.items[itemIndex].column));
|
|
110
|
+
void Common.Revealer.reveal(uiSourceCode.uiLocation(lineNumber, this.items[itemIndex].column));
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -102,7 +102,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
|
|
|
102
102
|
this.infoElement = document.createElement('div');
|
|
103
103
|
this.infoElement.className = 'gray-info-message';
|
|
104
104
|
this.infoElement.tabIndex = -1;
|
|
105
|
-
this.update();
|
|
105
|
+
void this.update();
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
static instance(): ScopeChainSidebarPane {
|
|
@@ -113,7 +113,7 @@ export class ScopeChainSidebarPane extends UI.Widget.VBox implements UI.ContextF
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
flavorChanged(_object: Object|null): void {
|
|
116
|
-
this.update();
|
|
116
|
+
void this.update();
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
focus(): void {
|
|
@@ -322,6 +322,6 @@ export class OpenLinearMemoryInspector extends UI.Widget.VBox implements UI.Cont
|
|
|
322
322
|
memoryObj = runtimeModel.createRemoteObject(response.result);
|
|
323
323
|
}
|
|
324
324
|
Host.userMetrics.linearMemoryInspectorRevealedFrom(Host.UserMetrics.LinearMemoryInspectorRevealedFrom.ContextMenu);
|
|
325
|
-
controller.openInspectorView(memoryObj, address);
|
|
325
|
+
void controller.openInspectorView(memoryObj, address);
|
|
326
326
|
}
|
|
327
327
|
}
|
|
@@ -54,7 +54,7 @@ export class ScriptFormatterEditorAction implements EditorAction {
|
|
|
54
54
|
|
|
55
55
|
if (this.isFormattableScript(uiSourceCode) && this.pathsToFormatOnLoad.has(uiSourceCode.url()) &&
|
|
56
56
|
!FormatterModule.SourceFormatter.SourceFormatter.instance().hasFormatted(uiSourceCode)) {
|
|
57
|
-
this.showFormatted(uiSourceCode);
|
|
57
|
+
void this.showFormatted(uiSourceCode);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -92,7 +92,7 @@ export class ScriptFormatterEditorAction implements EditorAction {
|
|
|
92
92
|
this.editorSelected(event);
|
|
93
93
|
});
|
|
94
94
|
this.sourcesView.addEventListener(Events.EditorClosed, event => {
|
|
95
|
-
this.editorClosed(event);
|
|
95
|
+
void this.editorClosed(event);
|
|
96
96
|
});
|
|
97
97
|
|
|
98
98
|
this.button = new UI.Toolbar.ToolbarButton(i18nString(UIStrings.prettyPrint), 'largeicon-pretty-print');
|
|
@@ -136,7 +136,7 @@ export class ScriptFormatterEditorAction implements EditorAction {
|
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
138
|
this.pathsToFormatOnLoad.add(uiSourceCode.url());
|
|
139
|
-
this.showFormatted(uiSourceCode);
|
|
139
|
+
void this.showFormatted(uiSourceCode);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
private async showFormatted(uiSourceCode: Workspace.UISourceCode.UISourceCode): Promise<void> {
|
|
@@ -31,7 +31,7 @@ export class SearchSourcesView extends Search.SearchView.SearchView {
|
|
|
31
31
|
location.appendView(view);
|
|
32
32
|
await UI.ViewManager.ViewManager.instance().revealView((view as UI.View.View));
|
|
33
33
|
const widget = (await view.widget() as Search.SearchView.SearchView);
|
|
34
|
-
widget.toggle(query, Boolean(searchImmediately));
|
|
34
|
+
void widget.toggle(query, Boolean(searchImmediately));
|
|
35
35
|
return widget;
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -54,7 +54,7 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
54
54
|
return actionDelegateInstance;
|
|
55
55
|
}
|
|
56
56
|
handleAction(_context: UI.Context.Context, _actionId: string): boolean {
|
|
57
|
-
this.showSearch();
|
|
57
|
+
void this.showSearch();
|
|
58
58
|
return true;
|
|
59
59
|
}
|
|
60
60
|
|