chrome-devtools-frontend 1.0.954777 → 1.0.955630
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/config/owner/COMMON_OWNERS +2 -2
- 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 +12 -0
- 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/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 +21 -21
- 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 +27 -24
- 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/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 +20 -13
- 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 +2 -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/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/quick_open/FilteredListWidget.ts +5 -5
- package/front_end/ui/legacy/components/source_frame/FontView.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/ImageView.ts +3 -3
- package/front_end/ui/legacy/components/source_frame/ResourceSourceFrame.ts +1 -1
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +5 -5
- 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/toolbar.css +1 -0
- package/front_end/ui/legacy/treeoutline.css +4 -0
- package/package.json +1 -1
- package/scripts/eslint_rules/tests/check_license_header_test.js +10 -8
|
@@ -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
|
|
|
@@ -171,7 +171,7 @@ export class FilesNavigatorView extends NavigatorView {
|
|
|
171
171
|
`);
|
|
172
172
|
|
|
173
173
|
const toolbar = new UI.Toolbar.Toolbar('navigator-toolbar');
|
|
174
|
-
toolbar.appendItemsAtLocation('files-navigator-toolbar').then(() => {
|
|
174
|
+
void toolbar.appendItemsAtLocation('files-navigator-toolbar').then(() => {
|
|
175
175
|
if (!toolbar.empty()) {
|
|
176
176
|
this.contentElement.insertBefore(toolbar.element, this.contentElement.firstChild);
|
|
177
177
|
}
|
|
@@ -194,7 +194,7 @@ export class FilesNavigatorView extends NavigatorView {
|
|
|
194
194
|
handleContextMenu(event: Event): void {
|
|
195
195
|
const contextMenu = new UI.ContextMenu.ContextMenu(event);
|
|
196
196
|
contextMenu.defaultSection().appendAction('sources.add-folder-to-workspace', undefined, true);
|
|
197
|
-
contextMenu.show();
|
|
197
|
+
void contextMenu.show();
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
@@ -272,7 +272,7 @@ export class OverridesNavigatorView extends NavigatorView {
|
|
|
272
272
|
const title = i18nString(UIStrings.selectFolderForOverrides);
|
|
273
273
|
const setupButton = new UI.Toolbar.ToolbarButton(title, 'largeicon-add', title);
|
|
274
274
|
setupButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
|
|
275
|
-
this.setupNewWorkspace();
|
|
275
|
+
void this.setupNewWorkspace();
|
|
276
276
|
}, this);
|
|
277
277
|
this.toolbar.appendToolbarItem(setupButton);
|
|
278
278
|
}
|
|
@@ -338,7 +338,7 @@ export class SnippetsNavigatorView extends NavigatorView {
|
|
|
338
338
|
const newButton = new UI.Toolbar.ToolbarButton(
|
|
339
339
|
i18nString(UIStrings.newSnippet), 'largeicon-add', i18nString(UIStrings.newSnippet));
|
|
340
340
|
newButton.addEventListener(UI.Toolbar.ToolbarButton.Events.Click, _event => {
|
|
341
|
-
this.create(Snippets.ScriptSnippetFileSystem.findSnippetsProject(), '');
|
|
341
|
+
void this.create(Snippets.ScriptSnippetFileSystem.findSnippetsProject(), '');
|
|
342
342
|
});
|
|
343
343
|
toolbar.appendToolbarItem(newButton);
|
|
344
344
|
this.contentElement.insertBefore(toolbar.element, this.contentElement.firstChild);
|
|
@@ -360,7 +360,7 @@ export class SnippetsNavigatorView extends NavigatorView {
|
|
|
360
360
|
contextMenu.headerSection().appendItem(
|
|
361
361
|
i18nString(UIStrings.createNewSnippet),
|
|
362
362
|
() => this.create(Snippets.ScriptSnippetFileSystem.findSnippetsProject(), ''));
|
|
363
|
-
contextMenu.show();
|
|
363
|
+
void contextMenu.show();
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
handleFileContextMenu(event: Event, node: NavigatorUISourceCodeTreeNode): void {
|
|
@@ -372,13 +372,13 @@ export class SnippetsNavigatorView extends NavigatorView {
|
|
|
372
372
|
contextMenu.editSection().appendItem(
|
|
373
373
|
i18nString(UIStrings.remove), () => uiSourceCode.project().deleteFile(uiSourceCode));
|
|
374
374
|
contextMenu.saveSection().appendItem(i18nString(UIStrings.saveAs), this.handleSaveAs.bind(this, uiSourceCode));
|
|
375
|
-
contextMenu.show();
|
|
375
|
+
void contextMenu.show();
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
private async handleSaveAs(uiSourceCode: Workspace.UISourceCode.UISourceCode): Promise<void> {
|
|
379
379
|
uiSourceCode.commitWorkingCopy();
|
|
380
380
|
const {content} = await uiSourceCode.requestContent();
|
|
381
|
-
Workspace.FileManager.FileManager.instance().save(uiSourceCode.url(), content || '', true);
|
|
381
|
+
void Workspace.FileManager.FileManager.instance().save(uiSourceCode.url(), content || '', true);
|
|
382
382
|
Workspace.FileManager.FileManager.instance().close(uiSourceCode.url());
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -399,12 +399,12 @@ export class ActionDelegate implements UI.ActionRegistration.ActionDelegate {
|
|
|
399
399
|
handleAction(context: UI.Context.Context, actionId: string): boolean {
|
|
400
400
|
switch (actionId) {
|
|
401
401
|
case 'sources.create-snippet':
|
|
402
|
-
Snippets.ScriptSnippetFileSystem.findSnippetsProject()
|
|
402
|
+
void Snippets.ScriptSnippetFileSystem.findSnippetsProject()
|
|
403
403
|
.createFile('', null, '')
|
|
404
404
|
.then(uiSourceCode => Common.Revealer.reveal(uiSourceCode));
|
|
405
405
|
return true;
|
|
406
406
|
case 'sources.add-folder-to-workspace':
|
|
407
|
-
Persistence.IsolatedFileSystemManager.IsolatedFileSystemManager.instance().addFileSystem();
|
|
407
|
+
void Persistence.IsolatedFileSystemManager.IsolatedFileSystemManager.instance().addFileSystem();
|
|
408
408
|
return true;
|
|
409
409
|
}
|
|
410
410
|
return false;
|