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
|
@@ -296,7 +296,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
296
296
|
}
|
|
297
297
|
|
|
298
298
|
const authenticatorId = await this.#model.addAuthenticator(options);
|
|
299
|
-
this.#addAuthenticatorSection(authenticatorId, options);
|
|
299
|
+
void this.#addAuthenticatorSection(authenticatorId, options);
|
|
300
300
|
// Update the authenticatorIds in the options.
|
|
301
301
|
options.authenticatorId = authenticatorId;
|
|
302
302
|
if (options.active) {
|
|
@@ -307,7 +307,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
307
307
|
// Update the settings to reflect the new authenticatorIds.
|
|
308
308
|
this.#availableAuthenticatorSetting.set(availableAuthenticators);
|
|
309
309
|
if (activeAuthenticatorId) {
|
|
310
|
-
this.#setActiveAuthenticator(activeAuthenticatorId);
|
|
310
|
+
void this.#setActiveAuthenticator(activeAuthenticatorId);
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
|
|
@@ -382,7 +382,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
382
382
|
#handleRemoveCredential(authenticatorId: Protocol.WebAuthn.AuthenticatorId, {
|
|
383
383
|
data: credential,
|
|
384
384
|
}: Common.EventTarget.EventTargetEvent<Protocol.WebAuthn.Credential>): void {
|
|
385
|
-
this.#removeCredential(authenticatorId, credential.credentialId);
|
|
385
|
+
void this.#removeCredential(authenticatorId, credential.credentialId);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
async #updateCredentials(authenticatorId: Protocol.WebAuthn.AuthenticatorId): Promise<void> {
|
|
@@ -450,7 +450,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
#handleCheckboxToggle(e: MouseEvent): void {
|
|
453
|
-
this.#setVirtualAuthEnvEnabled((e.target as HTMLInputElement).checked);
|
|
453
|
+
void this.#setVirtualAuthEnvEnabled((e.target as HTMLInputElement).checked);
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
#updateEnabledTransportOptions(enabledOptions: Protocol.WebAuthn.AuthenticatorTransport[]): void {
|
|
@@ -656,7 +656,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
656
656
|
const dataGrid = this.#createCredentialsDataGrid(authenticatorId);
|
|
657
657
|
dataGrid.asWidget().show(section);
|
|
658
658
|
|
|
659
|
-
this.#updateCredentials(authenticatorId);
|
|
659
|
+
void this.#updateCredentials(authenticatorId);
|
|
660
660
|
|
|
661
661
|
return section;
|
|
662
662
|
}
|
|
@@ -759,7 +759,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
759
759
|
this.#dataGrids.delete(authenticatorId);
|
|
760
760
|
|
|
761
761
|
if (this.#model) {
|
|
762
|
-
this.#model.removeAuthenticator(authenticatorId);
|
|
762
|
+
void this.#model.removeAuthenticator(authenticatorId);
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
// Update available authenticator setting.
|
|
@@ -770,7 +770,7 @@ export class WebauthnPaneImpl extends UI.Widget.VBox implements
|
|
|
770
770
|
if (this.#activeAuthId === authenticatorId) {
|
|
771
771
|
const availableAuthenticatorIds = Array.from(this.#dataGrids.keys());
|
|
772
772
|
if (availableAuthenticatorIds.length) {
|
|
773
|
-
this.#setActiveAuthenticator(availableAuthenticatorIds[0]);
|
|
773
|
+
void this.#setActiveAuthenticator(availableAuthenticatorIds[0]);
|
|
774
774
|
} else {
|
|
775
775
|
this.#activeAuthId = null;
|
|
776
776
|
}
|
|
@@ -101,42 +101,42 @@ export class Button extends HTMLElement {
|
|
|
101
101
|
this.#props.spinner = Boolean(data.spinner);
|
|
102
102
|
this.#props.type = data.type || 'button';
|
|
103
103
|
this.#setDisabledProperty(data.disabled || false);
|
|
104
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
104
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
set iconUrl(iconUrl: string|undefined) {
|
|
108
108
|
this.#props.iconUrl = iconUrl;
|
|
109
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
109
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
set variant(variant: Variant) {
|
|
113
113
|
this.#props.variant = variant;
|
|
114
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
114
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
set size(size: Size) {
|
|
118
118
|
this.#props.size = size;
|
|
119
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
119
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
set type(type: ButtonType) {
|
|
123
123
|
this.#props.type = type;
|
|
124
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
124
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
set disabled(disabled: boolean) {
|
|
128
128
|
this.#setDisabledProperty(disabled);
|
|
129
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
129
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
set active(active: boolean) {
|
|
133
133
|
this.#props.active = active;
|
|
134
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
134
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
set spinner(spinner: boolean) {
|
|
138
138
|
this.#props.spinner = spinner;
|
|
139
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
139
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
#setDisabledProperty(disabled: boolean): void {
|
|
@@ -150,7 +150,7 @@ export class Button extends HTMLElement {
|
|
|
150
150
|
|
|
151
151
|
connectedCallback(): void {
|
|
152
152
|
this.#shadow.adoptedStyleSheets = [buttonStyles];
|
|
153
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
153
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
#onClick(event: Event): void {
|
|
@@ -175,7 +175,7 @@ export class Button extends HTMLElement {
|
|
|
175
175
|
const slot = event.target as HTMLSlotElement | undefined;
|
|
176
176
|
const nodes = slot?.assignedNodes();
|
|
177
177
|
this.#isEmpty = !nodes || !Boolean(nodes.length);
|
|
178
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
178
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
#render(): void {
|
|
@@ -85,7 +85,7 @@ export class DataGrid extends HTMLElement {
|
|
|
85
85
|
// lookup constant.
|
|
86
86
|
readonly #rowIndexMap = new WeakMap<Row, number>();
|
|
87
87
|
readonly #resizeObserver = new ResizeObserver(() => {
|
|
88
|
-
this.#alignScrollHandlers();
|
|
88
|
+
void this.#alignScrollHandlers();
|
|
89
89
|
});
|
|
90
90
|
|
|
91
91
|
// These have to be bound as they are put onto the global document, not onto
|
|
@@ -173,7 +173,7 @@ export class DataGrid extends HTMLElement {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
this.#render();
|
|
176
|
+
void this.#render();
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
#shouldAutoScrollToBottom(): boolean {
|
|
@@ -206,13 +206,13 @@ export class DataGrid extends HTMLElement {
|
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
coordinator.read(() => {
|
|
209
|
+
void coordinator.read(() => {
|
|
210
210
|
const wrapper = this.#shadow.querySelector('.wrapping-container');
|
|
211
211
|
if (!wrapper) {
|
|
212
212
|
return;
|
|
213
213
|
}
|
|
214
214
|
const scrollHeight = wrapper.scrollHeight;
|
|
215
|
-
coordinator.scroll(() => {
|
|
215
|
+
void coordinator.scroll(() => {
|
|
216
216
|
wrapper.scrollTo(0, scrollHeight);
|
|
217
217
|
});
|
|
218
218
|
});
|
|
@@ -254,7 +254,7 @@ export class DataGrid extends HTMLElement {
|
|
|
254
254
|
}
|
|
255
255
|
|
|
256
256
|
this.#cellUserHasFocused = [newColumnIndex, newRowIndex];
|
|
257
|
-
this.#render();
|
|
257
|
+
void this.#render();
|
|
258
258
|
const tableCell = this.#getTableElementForCellUserHasFocused();
|
|
259
259
|
if (!tableCell) {
|
|
260
260
|
// Return in case the cell is out of bounds and we do nothing
|
|
@@ -264,7 +264,7 @@ export class DataGrid extends HTMLElement {
|
|
|
264
264
|
* add arrow key support, so in the case where we're programatically moving the
|
|
265
265
|
* focus, ensure we actually focus the cell.
|
|
266
266
|
*/
|
|
267
|
-
this.#focusTableCellInDOM(tableCell);
|
|
267
|
+
void this.#focusTableCellInDOM(tableCell);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
#onTableKeyDown(event: KeyboardEvent): void {
|
|
@@ -344,7 +344,7 @@ export class DataGrid extends HTMLElement {
|
|
|
344
344
|
this.#currentResize.documentForCursorChange.body.style.cursor = this.#currentResize.cursorToRestore;
|
|
345
345
|
this.#currentResize = null;
|
|
346
346
|
// Realign the scroll handlers now the table columns have been resized.
|
|
347
|
-
this.#alignScrollHandlers();
|
|
347
|
+
void this.#alignScrollHandlers();
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
#onResizePointerDown(event: PointerEvent): void {
|
|
@@ -528,7 +528,7 @@ export class DataGrid extends HTMLElement {
|
|
|
528
528
|
// Let the user append things to the menu
|
|
529
529
|
this.#contextMenus.headerRow(menu, this.#columns);
|
|
530
530
|
}
|
|
531
|
-
menu.show();
|
|
531
|
+
void menu.show();
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
#onBodyRowContextMenu(event: MouseEvent): void {
|
|
@@ -566,7 +566,7 @@ export class DataGrid extends HTMLElement {
|
|
|
566
566
|
if (this.#contextMenus && this.#contextMenus.bodyRow) {
|
|
567
567
|
this.#contextMenus.bodyRow(menu, this.#columns, rowThatWasClicked);
|
|
568
568
|
}
|
|
569
|
-
menu.show();
|
|
569
|
+
void menu.show();
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
#onScroll(event: Event): void {
|
|
@@ -581,7 +581,7 @@ export class DataGrid extends HTMLElement {
|
|
|
581
581
|
this.#userScrollState =
|
|
582
582
|
userIsAtBottom ? UserScrollState.SCROLLED_TO_BOTTOM : UserScrollState.MANUAL_SCROLL_NOT_BOTTOM;
|
|
583
583
|
|
|
584
|
-
this.#render();
|
|
584
|
+
void this.#render();
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
#alignScrollHandlers(): Promise<void> {
|
|
@@ -598,7 +598,7 @@ export class DataGrid extends HTMLElement {
|
|
|
598
598
|
const columnLeftOffset = header.offsetLeft;
|
|
599
599
|
if (handlers[index]) {
|
|
600
600
|
const handlerWidth = handlers[index].clientWidth;
|
|
601
|
-
coordinator.write(() => {
|
|
601
|
+
void coordinator.write(() => {
|
|
602
602
|
/**
|
|
603
603
|
* Render the resizer at the far right of the column; we subtract
|
|
604
604
|
* its width so it sits on the inner edge of the column.
|
|
@@ -828,7 +828,7 @@ export class DataGrid extends HTMLElement {
|
|
|
828
828
|
const currentlyFocusedRowIndex = tabbableCell[1];
|
|
829
829
|
const tabbableCellElement = this.#getTableElementForCellUserHasFocused();
|
|
830
830
|
if (this.#userHasFocusInDataGrid && currentlyFocusedRowIndex > 0 && tabbableCellElement) {
|
|
831
|
-
this.#focusTableCellInDOM(tabbableCellElement);
|
|
831
|
+
void this.#focusTableCellInDOM(tabbableCellElement);
|
|
832
832
|
}
|
|
833
833
|
this.#scrollToBottomIfRequired();
|
|
834
834
|
this.#engageResizeObserver();
|
|
@@ -838,7 +838,7 @@ export class DataGrid extends HTMLElement {
|
|
|
838
838
|
// re-positioned correctly if so.
|
|
839
839
|
|
|
840
840
|
// We don't have to do this on first render as it will fire when the resize observer is engaged.
|
|
841
|
-
this.#alignScrollHandlers();
|
|
841
|
+
void this.#alignScrollHandlers();
|
|
842
842
|
}
|
|
843
843
|
|
|
844
844
|
this.#isRendering = false;
|
|
@@ -848,7 +848,7 @@ export class DataGrid extends HTMLElement {
|
|
|
848
848
|
// the end with the most recent data.
|
|
849
849
|
if (this.#scheduleRender) {
|
|
850
850
|
this.#scheduleRender = false;
|
|
851
|
-
this.#render();
|
|
851
|
+
void this.#render();
|
|
852
852
|
}
|
|
853
853
|
}
|
|
854
854
|
}
|
|
@@ -31,8 +31,8 @@ component.addEventListener('treenodemouseout', (event: Event) => {
|
|
|
31
31
|
|
|
32
32
|
document.getElementById('container')?.appendChild(component);
|
|
33
33
|
document.getElementById('recursively-expand')?.addEventListener('click', () => {
|
|
34
|
-
component.expandRecursively();
|
|
34
|
+
void component.expandRecursively();
|
|
35
35
|
});
|
|
36
36
|
document.getElementById('expand-to-belgrave-house')?.addEventListener('click', () => {
|
|
37
|
-
component.expandToAndSelectTreeNode(belgraveHouse);
|
|
37
|
+
void component.expandToAndSelectTreeNode(belgraveHouse);
|
|
38
38
|
});
|
|
@@ -105,7 +105,7 @@ export class Icon extends HTMLElement {
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
#render(): void {
|
|
108
|
-
coordinator.write(() => {
|
|
108
|
+
void coordinator.write(() => {
|
|
109
109
|
// clang-format off
|
|
110
110
|
LitHtml.render(LitHtml.html`
|
|
111
111
|
<div class="icon-basic" style=${LitHtml.Directives.styleMap(this.#getStyles())}></div>
|
|
@@ -97,7 +97,7 @@ export class IssueCounter extends HTMLElement {
|
|
|
97
97
|
|
|
98
98
|
scheduleUpdate(): void {
|
|
99
99
|
if (this.#throttler) {
|
|
100
|
-
this.#throttler.schedule(async () => this.#render());
|
|
100
|
+
void this.#throttler.schedule(async () => this.#render());
|
|
101
101
|
} else {
|
|
102
102
|
this.#render();
|
|
103
103
|
}
|
|
@@ -80,7 +80,7 @@ export class IssueLinkIcon extends HTMLElement {
|
|
|
80
80
|
} else {
|
|
81
81
|
this.#issueTitlePromise = this.#fetchIssueTitle();
|
|
82
82
|
}
|
|
83
|
-
this.#render();
|
|
83
|
+
void this.#render();
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
async #fetchIssueTitle(): Promise<void> {
|
|
@@ -133,7 +133,7 @@ export class IssueLinkIcon extends HTMLElement {
|
|
|
133
133
|
return; // Only handle left-click for now.
|
|
134
134
|
}
|
|
135
135
|
if (this.#issue) {
|
|
136
|
-
this.#reveal(this.#issue);
|
|
136
|
+
void this.#reveal(this.#issue);
|
|
137
137
|
}
|
|
138
138
|
this.#additionalOnClickAction?.();
|
|
139
139
|
}
|
|
@@ -168,7 +168,7 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
|
|
|
168
168
|
|
|
169
169
|
if (this.#bufferIdToRemoteObject.has(id)) {
|
|
170
170
|
this.#paneInstance.reveal(id, address);
|
|
171
|
-
UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
|
|
171
|
+
void UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
|
|
@@ -177,7 +177,7 @@ export class LinearMemoryInspectorController extends SDK.TargetManager.SDKModelO
|
|
|
177
177
|
const arrayBufferWrapper = new RemoteArrayBufferWrapper(buffer);
|
|
178
178
|
|
|
179
179
|
this.#paneInstance.create(id, title, arrayBufferWrapper, address);
|
|
180
|
-
UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
|
|
180
|
+
void UI.ViewManager.ViewManager.instance().showView('linear-memory-inspector');
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
modelRemoved(model: SDK.RuntimeModel.RuntimeModel): void {
|
|
@@ -167,7 +167,10 @@ class LinearMemoryInspectorView extends UI.Widget.VBox {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
refreshData(): void {
|
|
170
|
-
LinearMemoryInspectorController.getMemoryForAddress(this.#memoryWrapper, this.#address).then(({
|
|
170
|
+
void LinearMemoryInspectorController.getMemoryForAddress(this.#memoryWrapper, this.#address).then(({
|
|
171
|
+
memory,
|
|
172
|
+
offset,
|
|
173
|
+
}) => {
|
|
171
174
|
let valueTypes;
|
|
172
175
|
let valueTypeModes;
|
|
173
176
|
let endianness;
|
|
@@ -196,7 +199,7 @@ class LinearMemoryInspectorView extends UI.Widget.VBox {
|
|
|
196
199
|
throw new Error('Requested address is out of bounds.');
|
|
197
200
|
}
|
|
198
201
|
|
|
199
|
-
LinearMemoryInspectorController.getMemoryRange(this.#memoryWrapper, start, end).then(memory => {
|
|
202
|
+
void LinearMemoryInspectorController.getMemoryRange(this.#memoryWrapper, start, end).then(memory => {
|
|
200
203
|
this.#inspector.data = {
|
|
201
204
|
memory: memory,
|
|
202
205
|
address: address,
|
|
@@ -34,7 +34,7 @@ export class FeedbackButton extends HTMLElement {
|
|
|
34
34
|
|
|
35
35
|
set data(data: FeedbackButtonData) {
|
|
36
36
|
this.#props = data;
|
|
37
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
37
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
#onFeedbackClick(): void {
|
|
@@ -56,7 +56,7 @@ export class PanelFeedback extends HTMLElement {
|
|
|
56
56
|
|
|
57
57
|
set data(data: PanelFeedbackData) {
|
|
58
58
|
this.#props = data;
|
|
59
|
-
ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
59
|
+
void ComponentHelpers.ScheduledRender.scheduleRender(this, this.#boundRender);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
#render(): void {
|
|
@@ -86,7 +86,7 @@ export class RequestLinkIcon extends HTMLElement {
|
|
|
86
86
|
if (!this.#request && data.affectedRequest) {
|
|
87
87
|
this.#requestResolvedPromise = this.#resolveRequest(data.affectedRequest.requestId);
|
|
88
88
|
}
|
|
89
|
-
this.#render();
|
|
89
|
+
void this.#render();
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
connectedCallback(): void {
|
|
@@ -147,11 +147,11 @@ export class RequestLinkIcon extends HTMLElement {
|
|
|
147
147
|
if (this.#highlightHeader) {
|
|
148
148
|
const requestLocation = NetworkForward.UIRequestLocation.UIRequestLocation.header(
|
|
149
149
|
linkedRequest, this.#highlightHeader.section, this.#highlightHeader.name);
|
|
150
|
-
this.#reveal(requestLocation);
|
|
150
|
+
void this.#reveal(requestLocation);
|
|
151
151
|
} else {
|
|
152
152
|
const requestLocation = NetworkForward.UIRequestLocation.UIRequestLocation.tab(
|
|
153
153
|
linkedRequest, this.#networkTab ?? NetworkForward.UIRequestLocation.UIRequestTabs.Headers);
|
|
154
|
-
this.#reveal(requestLocation);
|
|
154
|
+
void this.#reveal(requestLocation);
|
|
155
155
|
}
|
|
156
156
|
this.#additionalOnClickAction?.();
|
|
157
157
|
}
|
|
@@ -57,7 +57,7 @@ export function cursorTooltip(
|
|
|
57
57
|
const {main} = view.state.selection;
|
|
58
58
|
if (main.empty) {
|
|
59
59
|
const {updateID} = this;
|
|
60
|
-
source(view.state, main.from).then(tooltip => {
|
|
60
|
+
void source(view.state, main.from).then(tooltip => {
|
|
61
61
|
if (this.updateID !== updateID) {
|
|
62
62
|
if (this.pending < 0) {
|
|
63
63
|
this.scheduleUpdate(view);
|
|
@@ -18,11 +18,11 @@ export function completion(): CodeMirror.Extension {
|
|
|
18
18
|
export async function completeInContext(
|
|
19
19
|
textBefore: string, query: string, force: boolean = false): Promise<UI.SuggestBox.Suggestions> {
|
|
20
20
|
const state = CodeMirror.EditorState.create({
|
|
21
|
-
doc: textBefore,
|
|
21
|
+
doc: textBefore + query,
|
|
22
22
|
selection: {anchor: textBefore.length},
|
|
23
23
|
extensions: CodeMirror.javascript.javascriptLanguage,
|
|
24
24
|
});
|
|
25
|
-
const result = await javascriptCompletionSource(new CodeMirror.CompletionContext(state,
|
|
25
|
+
const result = await javascriptCompletionSource(new CodeMirror.CompletionContext(state, state.doc.length, force));
|
|
26
26
|
return result ?
|
|
27
27
|
result.options.filter((o): boolean => o.label.startsWith(query)).map((o): UI.SuggestBox.Suggestion => ({
|
|
28
28
|
text: o.label,
|
|
@@ -153,7 +153,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
153
153
|
if (!this.#hasRenderedAtLeastOnce) {
|
|
154
154
|
this.#selectedTreeNode = this.#treeData[0];
|
|
155
155
|
}
|
|
156
|
-
this.#render();
|
|
156
|
+
void this.#render();
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/**
|
|
@@ -298,7 +298,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
298
298
|
event.stopPropagation();
|
|
299
299
|
if (isExpandableNode(node)) {
|
|
300
300
|
this.#setNodeExpandedState(node, !this.#nodeIsExpanded(node));
|
|
301
|
-
this.#render();
|
|
301
|
+
void this.#render();
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
}
|
|
@@ -312,7 +312,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
312
312
|
if (nodeClickExpandsOrContracts && node && isExpandableNode(node)) {
|
|
313
313
|
this.#setNodeExpandedState(node, !this.#nodeIsExpanded(node));
|
|
314
314
|
}
|
|
315
|
-
this.#focusTreeNode(domNode);
|
|
315
|
+
void this.#focusTreeNode(domNode);
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
async #focusTreeNode(domNode: HTMLLIElement): Promise<void> {
|
|
@@ -323,7 +323,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
323
323
|
this.#selectedTreeNode = treeNode;
|
|
324
324
|
await this.#render();
|
|
325
325
|
this.dispatchEvent(new ItemSelectedEvent(treeNode));
|
|
326
|
-
coordinator.write('DOMNode focus', () => {
|
|
326
|
+
void coordinator.write('DOMNode focus', () => {
|
|
327
327
|
domNode.focus();
|
|
328
328
|
});
|
|
329
329
|
}
|
|
@@ -332,7 +332,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
332
332
|
if (key === 'Home') {
|
|
333
333
|
const firstRootNode = this.#shadow.querySelector<HTMLLIElement>('ul[role="tree"] > li[role="treeitem"]');
|
|
334
334
|
if (firstRootNode) {
|
|
335
|
-
this.#focusTreeNode(firstRootNode);
|
|
335
|
+
void this.#focusTreeNode(firstRootNode);
|
|
336
336
|
}
|
|
337
337
|
} else if (key === 'End') {
|
|
338
338
|
/**
|
|
@@ -347,7 +347,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
347
347
|
const allTreeItems = this.#shadow.querySelectorAll<HTMLLIElement>('li[role="treeitem"]');
|
|
348
348
|
const lastTreeItem = allTreeItems[allTreeItems.length - 1];
|
|
349
349
|
if (lastTreeItem) {
|
|
350
|
-
this.#focusTreeNode(lastTreeItem);
|
|
350
|
+
void this.#focusTreeNode(lastTreeItem);
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
}
|
|
@@ -376,7 +376,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
376
376
|
if (isExpandableNode(currentTreeNode)) {
|
|
377
377
|
const currentExpandedState = this.#nodeIsExpanded(currentTreeNode);
|
|
378
378
|
this.#setNodeExpandedState(currentTreeNode, !currentExpandedState);
|
|
379
|
-
this.#render();
|
|
379
|
+
void this.#render();
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
382
|
|
|
@@ -399,7 +399,7 @@ export class TreeOutline<TreeNodeDataType> extends HTMLElement {
|
|
|
399
399
|
|
|
400
400
|
#focusPendingNode(domNode: HTMLLIElement): void {
|
|
401
401
|
this.#nodeIdPendingFocus = null;
|
|
402
|
-
this.#focusTreeNode(domNode);
|
|
402
|
+
void this.#focusTreeNode(domNode);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
#isSelectedNode(node: TreeNode<TreeNodeDataType>): boolean {
|
|
@@ -52,7 +52,7 @@ export class Context {
|
|
|
52
52
|
private dispatchFlavorChange<T>(flavorType: ConstructorFn<T>, flavorValue: T|null): void {
|
|
53
53
|
for (const extension of getRegisteredListeners()) {
|
|
54
54
|
if (extension.contextTypes().includes(flavorType)) {
|
|
55
|
-
extension.loadListener().then(instance => instance.flavorChanged(flavorValue));
|
|
55
|
+
void extension.loadListener().then(instance => instance.flavorChanged(flavorValue));
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
const dispatcher = this.eventDispatchers.get(flavorType);
|
|
@@ -198,7 +198,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
|
|
|
198
198
|
Host.InspectorFrontendHostAPI.Events.ShowPanel, showPanel.bind(this));
|
|
199
199
|
|
|
200
200
|
function showPanel(this: InspectorView, {data: panelName}: Common.EventTarget.EventTargetEvent<string>): void {
|
|
201
|
-
this.showPanel(panelName);
|
|
201
|
+
void this.showPanel(panelName);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
if (shouldShowLocaleInfobar()) {
|
|
@@ -375,7 +375,7 @@ export class InspectorView extends VBox implements ViewLocationResolver {
|
|
|
375
375
|
const panelName = this.tabbedPane.tabIds()[panelIndex];
|
|
376
376
|
if (panelName) {
|
|
377
377
|
if (!Dialog.hasInstance() && !this.currentPanelLocked) {
|
|
378
|
-
this.showPanel(panelName);
|
|
378
|
+
void this.showPanel(panelName);
|
|
379
379
|
}
|
|
380
380
|
event.consume(true);
|
|
381
381
|
}
|
|
@@ -478,7 +478,6 @@ function shouldShowLocaleInfobar(): boolean {
|
|
|
478
478
|
function createLocaleInfobar(): Infobar {
|
|
479
479
|
const devtoolsLocale = i18n.DevToolsLocale.DevToolsLocale.instance();
|
|
480
480
|
const closestSupportedLocale = devtoolsLocale.lookupClosestDevToolsLocale(navigator.language);
|
|
481
|
-
// @ts-ignore TODO(crbug.com/1163928) Wait for Intl support.
|
|
482
481
|
const locale = new Intl.Locale(closestSupportedLocale);
|
|
483
482
|
const closestSupportedLanguageInCurrentLocale =
|
|
484
483
|
new Intl.DisplayNames([devtoolsLocale.locale], {type: 'language'}).of(locale.language || 'en');
|
|
@@ -137,7 +137,7 @@ export class ShortcutRegistry {
|
|
|
137
137
|
handleShortcut(event: KeyboardEvent, handlers?: {
|
|
138
138
|
[x: string]: () => Promise<boolean>,
|
|
139
139
|
}): void {
|
|
140
|
-
this.handleKey(KeyboardShortcut.makeKeyFromEvent(event), event.key, event, handlers);
|
|
140
|
+
void this.handleKey(KeyboardShortcut.makeKeyFromEvent(event), event.key, event, handlers);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
actionHasDefaultShortcut(actionId: string): boolean {
|
|
@@ -632,7 +632,7 @@ export class TabbedPane extends Common.ObjectWrapper.eventMixin<EventTypes, type
|
|
|
632
632
|
menu.defaultSection().appendItem(tab.title, this.dropDownMenuItemSelected.bind(this, tab));
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
|
-
menu.show();
|
|
635
|
+
void menu.show();
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
private dropDownKeydown(event: Event): void {
|
|
@@ -1250,7 +1250,7 @@ export class TabbedPaneTab {
|
|
|
1250
1250
|
if (this.delegate) {
|
|
1251
1251
|
this.delegate.onContextMenu(this.id, contextMenu);
|
|
1252
1252
|
}
|
|
1253
|
-
contextMenu.show();
|
|
1253
|
+
void contextMenu.show();
|
|
1254
1254
|
}
|
|
1255
1255
|
|
|
1256
1256
|
private startTabDragging(ev: Event): boolean {
|
|
@@ -225,13 +225,13 @@ export class Toolbar {
|
|
|
225
225
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
226
226
|
data: any,
|
|
227
227
|
}): void => {
|
|
228
|
-
action.execute();
|
|
228
|
+
void action.execute();
|
|
229
229
|
};
|
|
230
230
|
if (options.userActionCode) {
|
|
231
231
|
const actionCode = options.userActionCode;
|
|
232
232
|
handler = (): void => {
|
|
233
233
|
Host.userMetrics.actionTaken(actionCode);
|
|
234
|
-
action.execute();
|
|
234
|
+
void action.execute();
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
button.addEventListener(ToolbarButton.Events.Click, handler, action);
|
|
@@ -814,7 +814,7 @@ export class ToolbarMenuButton extends ToolbarButton {
|
|
|
814
814
|
y: this.element.totalOffsetTop() + this.element.offsetHeight,
|
|
815
815
|
});
|
|
816
816
|
this.contextMenuHandler(contextMenu);
|
|
817
|
-
contextMenu.show();
|
|
817
|
+
void contextMenu.show();
|
|
818
818
|
this.lastTriggerTime = Date.now();
|
|
819
819
|
}
|
|
820
820
|
|