chrome-devtools-frontend 1.0.1668390 → 1.0.1669021
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/.agents/skills/devtools-ci/SKILL.md +65 -0
- package/.agents/skills/gerrit-cli/SKILL.md +59 -0
- package/.agents/skills/gerrit-cli/references/commands.md +93 -0
- package/.agents/skills/gerrit-cli/references/workflows.md +56 -0
- package/.agents/skills/gerrit-cli/scripts/gerrit_client_wrapper.py +47 -0
- package/.agents/skills/gerrit-cli/scripts/import_upstream.py +230 -0
- package/docs/contributing/infrastructure.md +7 -1
- package/front_end/core/host/AidaClient.ts +66 -47
- package/front_end/core/host/GcaClient.ts +4 -6
- package/front_end/core/host/ResourceLoader.ts +4 -2
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/core/sdk/ConsoleModel.ts +3 -2
- package/front_end/core/sdk/DebuggerModel.ts +14 -6
- package/front_end/core/sdk/SDKSettings.ts +19 -0
- package/front_end/core/sdk/sdk-meta.ts +0 -58
- package/front_end/generated/InspectorBackendCommands.ts +2 -2
- package/front_end/generated/protocol.ts +11 -3
- package/front_end/models/ai_assistance/AiUtils.ts +67 -4
- package/front_end/models/ai_assistance/StorageItem.ts +26 -5
- package/front_end/models/ai_code_completion/AiCodeCompletion.ts +2 -19
- package/front_end/models/ai_code_generation/AiCodeGeneration.ts +2 -3
- package/front_end/models/trace/handlers/RendererHandler.ts +20 -4
- package/front_end/models/trace/types/File.ts +1 -0
- package/front_end/models/workspace/UISourceCode.ts +0 -10
- package/front_end/panels/ai_assistance/AiAssistancePanel.ts +61 -182
- package/front_end/panels/ai_assistance/components/ChatInput.ts +25 -8
- package/front_end/panels/ai_assistance/components/ChatMessage.ts +13 -69
- package/front_end/panels/ai_assistance/components/ChatView.ts +14 -8
- package/front_end/panels/ai_assistance/components/chatMessage.css +2 -20
- package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -2
- package/front_end/panels/application/ApplicationPanelTreeElement.ts +41 -3
- package/front_end/panels/application/ServiceWorkerUpdateCycleView.ts +116 -79
- package/front_end/panels/application/ServiceWorkersView.ts +8 -8
- package/front_end/panels/application/application.ts +2 -0
- package/front_end/panels/application/components/AdsView.ts +10 -6
- package/front_end/panels/application/preloading/PreloadingView.ts +53 -45
- package/front_end/panels/application/preloading/components/PreloadingDetailsReportView.ts +111 -119
- package/front_end/panels/application/preloading/components/preloadingDetailsReportView.css +21 -23
- package/front_end/panels/application/serviceWorkerUpdateCycleView.css +105 -102
- package/front_end/panels/common/AiCodeCompletionDisclaimer.ts +107 -96
- package/front_end/panels/common/AiCodeCompletionSummaryToolbar.ts +17 -19
- package/front_end/panels/common/AiCodeCompletionTeaser.ts +6 -6
- package/front_end/panels/common/AiCodeGenerationTeaser.ts +28 -26
- package/front_end/panels/common/common.ts +1 -1
- package/front_end/panels/console/ConsoleInsightTeaser.ts +3 -6
- package/front_end/panels/console/ConsoleView.ts +6 -4
- package/front_end/panels/console/ConsoleViewMessage.ts +1 -1
- package/front_end/panels/console/console-meta.ts +28 -0
- package/front_end/panels/elements/StylesAiCodeCompletionProvider.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +3 -2
- package/front_end/panels/emulation/DeviceModeWrapper.ts +18 -4
- package/front_end/panels/explain/components/ConsoleInsight.ts +4 -6
- package/front_end/panels/explain/explain-meta.ts +7 -49
- package/front_end/panels/network/NetworkDataGridNode.ts +1 -1
- package/front_end/panels/network/NetworkLogView.ts +1 -0
- package/front_end/panels/network/OriginalResourceChunkView.ts +340 -0
- package/front_end/panels/network/ResourceChunkView.ts +72 -46
- package/front_end/panels/network/ResourceDirectSocketChunkView.ts +3 -2
- package/front_end/panels/network/ResourceWebSocketFrameView.ts +3 -3
- package/front_end/panels/network/originalResourceChunkView.css +49 -0
- package/front_end/panels/screencast/ScreencastView.ts +401 -260
- package/front_end/panels/screencast/screencastView.css +113 -100
- package/front_end/panels/sensors/LocationsSettingsTab.ts +106 -122
- package/front_end/panels/sensors/locationsSettingsTab.css +4 -4
- package/front_end/panels/settings/AISettingsTab.ts +17 -100
- package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +2 -2
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +4 -4
- package/front_end/panels/sources/AddSourceMapURLDialog.ts +3 -3
- package/front_end/panels/sources/AiCodeCompletionPlugin.ts +4 -3
- package/front_end/panels/sources/BreakpointEditDialog.ts +14 -14
- package/front_end/panels/sources/BreakpointsView.ts +14 -14
- package/front_end/panels/sources/CallStackSidebarPane.ts +6 -6
- package/front_end/panels/sources/CategorizedBreakpointL10n.ts +18 -18
- package/front_end/panels/sources/CoveragePlugin.ts +7 -7
- package/front_end/panels/sources/DebuggerPausedMessage.ts +23 -23
- package/front_end/panels/sources/DebuggerPlugin.ts +29 -29
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +2 -2
- package/front_end/panels/sources/GoToLineQuickOpen.ts +10 -10
- package/front_end/panels/sources/NavigatorView.ts +34 -27
- package/front_end/panels/sources/OutlineQuickOpen.ts +3 -3
- package/front_end/panels/sources/PersistenceActions.ts +9 -9
- package/front_end/panels/sources/ProfilePlugin.ts +1 -1
- package/front_end/panels/sources/ScopeChainSidebarPane.ts +5 -5
- package/front_end/panels/sources/SnippetsPlugin.ts +2 -2
- package/front_end/panels/sources/SourcesNavigator.ts +20 -18
- package/front_end/panels/sources/SourcesPanel.ts +26 -25
- package/front_end/panels/sources/SourcesView.ts +5 -6
- package/front_end/panels/sources/TabbedEditorContainer.ts +3 -3
- package/front_end/panels/sources/ThreadsSidebarPane.ts +1 -1
- package/front_end/panels/sources/UISourceCodeFrame.ts +0 -2
- package/front_end/panels/sources/WatchExpressionsSidebarPane.ts +7 -7
- package/front_end/panels/sources/components/HeadersView.ts +2 -2
- package/front_end/panels/sources/sources-meta.ts +109 -71
- package/front_end/panels/sources/sources.ts +0 -2
- package/front_end/panels/timeline/TimelineHistoryManager.ts +14 -3
- package/front_end/panels/timeline/TimelineLoader.ts +72 -42
- package/front_end/panels/timeline/TimelinePanel.ts +29 -4
- package/front_end/panels/timeline/timelineHistoryManager.css +4 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/third_party/puppeteer/README.chromium +2 -2
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.d.ts +187 -1
- package/front_end/third_party/puppeteer/package/lib/es5-iife/puppeteer-core-browser.js +91 -38
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts +145 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/BrowserContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts +3 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js +8 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts +1 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js +0 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts +0 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js +0 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/api/Realm.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/BidiOverCdp.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js +12 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js +4 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/bidi/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts +5 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js +49 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/cdp/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts +0 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js +0 -6
- package/front_end/third_party/puppeteer/package/lib/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/generated/injected.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js +3 -0
- package/front_end/third_party/puppeteer/package/lib/puppeteer/injected/util.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts +0 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js +0 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/node/ScreenRecorder.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/revisions.js +3 -3
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.d.ts +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/disposable.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.d.ts +1 -1
- package/front_end/third_party/puppeteer/package/lib/puppeteer/util/version.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +187 -1
- package/front_end/third_party/puppeteer/package/package.json +5 -5
- package/front_end/third_party/puppeteer/package/src/api/Browser.ts +155 -2
- package/front_end/third_party/puppeteer/package/src/api/BrowserContext.ts +0 -2
- package/front_end/third_party/puppeteer/package/src/api/Dialog.ts +10 -2
- package/front_end/third_party/puppeteer/package/src/api/JSHandle.ts +0 -2
- package/front_end/third_party/puppeteer/package/src/api/Page.ts +1 -3
- package/front_end/third_party/puppeteer/package/src/api/Realm.ts +0 -1
- package/front_end/third_party/puppeteer/package/src/bidi/BidiOverCdp.ts +4 -2
- package/front_end/third_party/puppeteer/package/src/bidi/Browser.ts +17 -0
- package/front_end/third_party/puppeteer/package/src/bidi/HTTPResponse.ts +5 -4
- package/front_end/third_party/puppeteer/package/src/cdp/Browser.ts +66 -0
- package/front_end/third_party/puppeteer/package/src/common/EventEmitter.ts +0 -6
- package/front_end/third_party/puppeteer/package/src/generated/injected.ts +1 -1
- package/front_end/third_party/puppeteer/package/src/injected/util.ts +4 -1
- package/front_end/third_party/puppeteer/package/src/node/ScreenRecorder.ts +0 -3
- package/front_end/third_party/puppeteer/package/src/revisions.ts +3 -3
- package/front_end/third_party/puppeteer/package/src/util/disposable.ts +2 -2
- package/front_end/third_party/puppeteer/package/src/util/version.ts +1 -1
- package/front_end/ui/components/text_editor/AiCodeCompletionProvider.ts +9 -7
- package/front_end/ui/components/text_editor/AiCodeGenerationProvider.ts +7 -8
- package/front_end/ui/legacy/Dialog.ts +12 -2
- package/front_end/ui/legacy/TabbedPane.ts +7 -2
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +40 -24
- package/front_end/ui/legacy/components/data_grid/DataGrid.ts +1 -0
- package/front_end/ui/legacy/components/data_grid/DataGridElement.ts +8 -4
- package/front_end/ui/legacy/components/perf_ui/FlameChart.ts +14 -7
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +11 -1
- package/front_end/ui/visual_logging/KnownContextValues.ts +2 -0
- package/package.json +1 -1
- package/front_end/panels/sources/AiWarningInfobarPlugin.ts +0 -78
|
@@ -25,67 +25,67 @@ import sourcesNavigatorStyles from './sourcesNavigator.css.js';
|
|
|
25
25
|
|
|
26
26
|
const UIStrings = {
|
|
27
27
|
/**
|
|
28
|
-
* @description Text to show if no workspaces are set up. https://goo.gle/devtools-workspace
|
|
28
|
+
* @description Text to show if no workspaces are set up. Learn more at https://goo.gle/devtools-workspace.
|
|
29
29
|
*/
|
|
30
30
|
noWorkspace: 'No workspaces set up',
|
|
31
31
|
/**
|
|
32
|
-
* @description Text to explain the
|
|
32
|
+
* @description Text to explain the workspace feature in the Sources panel. Learn more at https://goo.gle/devtools-workspace.
|
|
33
33
|
*/
|
|
34
34
|
explainWorkspace: 'Set up workspaces to sync edits directly to the sources you develop.',
|
|
35
35
|
/**
|
|
36
|
-
* @description Text to show if no local overrides are set up. https://goo.gle/devtools-overrides
|
|
36
|
+
* @description Text to show if no local overrides are set up. Learn more at https://goo.gle/devtools-overrides.
|
|
37
37
|
*/
|
|
38
38
|
noLocalOverrides: 'No local overrides set up',
|
|
39
39
|
/**
|
|
40
|
-
* @description Text to explain the
|
|
40
|
+
* @description Text to explain the local overrides feature. Learn more at https://goo.gle/devtools-overrides.
|
|
41
41
|
*/
|
|
42
42
|
explainLocalOverrides: 'Override network requests and web content locally to mock remote resources.',
|
|
43
43
|
/**
|
|
44
|
-
* @description Tooltip text that appears when hovering over the
|
|
44
|
+
* @description Tooltip text that appears when hovering over the clear button in the Sources navigator of the Sources panel.
|
|
45
45
|
*/
|
|
46
46
|
clearConfiguration: 'Clear configuration',
|
|
47
47
|
/**
|
|
48
|
-
* @description Text in Sources
|
|
48
|
+
* @description Text in Sources navigator of the Sources panel.
|
|
49
49
|
*/
|
|
50
50
|
selectFolderForOverrides: 'Select folder for overrides',
|
|
51
51
|
/**
|
|
52
|
-
* @description Text to show if no content scripts can be found in the Sources panel. https://developer.chrome.com/extensions/content_scripts
|
|
52
|
+
* @description Text to show if no content scripts can be found in the Sources panel. Learn more at https://developer.chrome.com/extensions/content_scripts.
|
|
53
53
|
*/
|
|
54
54
|
noContentScripts: 'No content scripts detected',
|
|
55
55
|
/**
|
|
56
|
-
* @description Text to explain the content scripts
|
|
56
|
+
* @description Text to explain the content scripts sidebar in the Sources panel.
|
|
57
57
|
*/
|
|
58
58
|
explainContentScripts: 'View content scripts served by extensions.',
|
|
59
59
|
/**
|
|
60
|
-
* @description Text to show if no snippets were created and saved in the Sources panel https://goo.gle/devtools-snippets
|
|
60
|
+
* @description Text to show if no snippets were created and saved in the Sources panel. Learn more at https://goo.gle/devtools-snippets.
|
|
61
61
|
*/
|
|
62
62
|
noSnippets: 'No snippets saved',
|
|
63
63
|
/**
|
|
64
|
-
* @description Text to explain the
|
|
64
|
+
* @description Text to explain the snippets feature in the Sources panel. Learn more at https://goo.gle/devtools-snippets.
|
|
65
65
|
*/
|
|
66
66
|
explainSnippets: 'Save the JavaScript code you run often in a snippet to run it again anytime.',
|
|
67
67
|
/**
|
|
68
|
-
* @description Text in Sources
|
|
68
|
+
* @description Text in Sources navigator of the Sources panel.
|
|
69
69
|
*/
|
|
70
70
|
newSnippet: 'New snippet',
|
|
71
71
|
/**
|
|
72
|
-
* @description Title of an action in the sources tool to create snippet
|
|
72
|
+
* @description Title of an action in the sources tool to create a snippet.
|
|
73
73
|
*/
|
|
74
74
|
createNewSnippet: 'Create new snippet',
|
|
75
75
|
/**
|
|
76
|
-
* @description A context menu item in the Sources
|
|
76
|
+
* @description A context menu item in the Sources navigator of the Sources panel.
|
|
77
77
|
*/
|
|
78
78
|
run: 'Run',
|
|
79
79
|
/**
|
|
80
|
-
* @description A context menu item in the Navigator
|
|
80
|
+
* @description A context menu item in the Navigator view of the Sources panel.
|
|
81
81
|
*/
|
|
82
82
|
rename: 'Rename…',
|
|
83
83
|
/**
|
|
84
|
-
* @description Label for an item to remove something
|
|
84
|
+
* @description Label for an item to remove something.
|
|
85
85
|
*/
|
|
86
86
|
remove: 'Remove',
|
|
87
87
|
/**
|
|
88
|
-
* @description Text to save content as a specific file type
|
|
88
|
+
* @description Text to save content as a specific file type.
|
|
89
89
|
*/
|
|
90
90
|
saveAs: 'Save as…',
|
|
91
91
|
/**
|
|
@@ -97,8 +97,8 @@ const UIStrings = {
|
|
|
97
97
|
/**
|
|
98
98
|
* @description Message shown in the Workspace tab of the Sources panel to nudge
|
|
99
99
|
* developers into utilizing the Automatic Workspace Folders feature
|
|
100
|
-
* in Chrome DevTools by setting up a
|
|
101
|
-
* file
|
|
100
|
+
* in Chrome DevTools by setting up a com.chrome.devtools.json
|
|
101
|
+
* file or endpoint in their project. This nudge is only shown when
|
|
102
102
|
* the feature is enabled and there's no automatic workspace folder
|
|
103
103
|
* detected.
|
|
104
104
|
* @example {com.chrome.devtools.json} PH1
|
|
@@ -277,6 +277,8 @@ export class OverridesNavigatorView extends NavigatorView {
|
|
|
277
277
|
|
|
278
278
|
Persistence.NetworkPersistenceManager.NetworkPersistenceManager.instance().addEventListener(
|
|
279
279
|
Persistence.NetworkPersistenceManager.Events.PROJECT_CHANGED, this.updateProjectAndUI, this);
|
|
280
|
+
Persistence.NetworkPersistenceManager.NetworkPersistenceManager.instance().addEventListener(
|
|
281
|
+
Persistence.NetworkPersistenceManager.Events.LOCAL_OVERRIDES_PROJECT_UPDATED, this.updateProjectAndUI, this);
|
|
280
282
|
this.workspace().addEventListener(Workspace.Workspace.Events.ProjectAdded, this.onProjectAddOrRemoved, this);
|
|
281
283
|
this.workspace().addEventListener(Workspace.Workspace.Events.ProjectRemoved, this.onProjectAddOrRemoved, this);
|
|
282
284
|
this.updateProjectAndUI();
|
|
@@ -61,20 +61,20 @@ import {UISourceCodeFrame} from './UISourceCodeFrame.js';
|
|
|
61
61
|
|
|
62
62
|
const UIStrings = {
|
|
63
63
|
/**
|
|
64
|
-
* @description Text that appears when user
|
|
64
|
+
* @description Text that appears when user drags and drops a folder in the Sources panel.
|
|
65
65
|
*/
|
|
66
66
|
dropWorkspaceFolderHere: 'Drop workspace folder here',
|
|
67
67
|
/**
|
|
68
|
-
* @description Text to show more options
|
|
68
|
+
* @description Text to show more options.
|
|
69
69
|
*/
|
|
70
70
|
moreOptions: 'More options',
|
|
71
71
|
/**
|
|
72
|
-
* @description Tooltip for the
|
|
72
|
+
* @description Tooltip for the navigator toggle in the Sources panel. Command to open or show the
|
|
73
73
|
* sidebar containing the navigator tool.
|
|
74
74
|
*/
|
|
75
75
|
showNavigator: 'Show navigator',
|
|
76
76
|
/**
|
|
77
|
-
* @description Tooltip for the
|
|
77
|
+
* @description Tooltip for the navigator toggle in the Sources panel. Command to close or hide
|
|
78
78
|
* the sidebar containing the navigator tool.
|
|
79
79
|
*/
|
|
80
80
|
hideNavigator: 'Hide navigator',
|
|
@@ -87,87 +87,87 @@ const UIStrings = {
|
|
|
87
87
|
*/
|
|
88
88
|
navigatorHidden: 'Navigator sidebar hidden',
|
|
89
89
|
/**
|
|
90
|
-
* @description Screen reader announcement when the
|
|
90
|
+
* @description Screen reader announcement when the debugger sidebar is shown in the Sources panel.
|
|
91
91
|
*/
|
|
92
92
|
debuggerShown: 'Debugger sidebar shown',
|
|
93
93
|
/**
|
|
94
|
-
* @description Screen reader announcement when the
|
|
94
|
+
* @description Screen reader announcement when the debugger sidebar is hidden in the Sources panel.
|
|
95
95
|
*/
|
|
96
96
|
debuggerHidden: 'Debugger sidebar hidden',
|
|
97
97
|
/**
|
|
98
|
-
* @description Tooltip for the
|
|
98
|
+
* @description Tooltip for the debugger toggle in the Sources panel. Command to open or show the
|
|
99
99
|
* sidebar containing the debugger tool.
|
|
100
100
|
*/
|
|
101
101
|
showDebugger: 'Show debugger',
|
|
102
102
|
/**
|
|
103
|
-
* @description Tooltip for the
|
|
103
|
+
* @description Tooltip for the debugger toggle in the Sources panel. Command to close or hide the
|
|
104
104
|
* sidebar containing the debugger tool.
|
|
105
105
|
*/
|
|
106
106
|
hideDebugger: 'Hide debugger',
|
|
107
107
|
/**
|
|
108
|
-
* @description Text in Sources
|
|
108
|
+
* @description Text in Sources panel.
|
|
109
109
|
*/
|
|
110
110
|
groupByFolder: 'Group by folder',
|
|
111
111
|
/**
|
|
112
|
-
* @description Text in Sources
|
|
112
|
+
* @description Text in Sources panel.
|
|
113
113
|
*/
|
|
114
|
-
groupByAuthored: 'Group by
|
|
114
|
+
groupByAuthored: 'Group by authored/deployed',
|
|
115
115
|
/**
|
|
116
|
-
* @description Text in Sources
|
|
116
|
+
* @description Text in Sources panel.
|
|
117
117
|
*/
|
|
118
118
|
hideIgnoreListed: 'Hide ignore-listed sources',
|
|
119
119
|
/**
|
|
120
|
-
* @description Tooltip text that appears when hovering over the
|
|
120
|
+
* @description Tooltip text that appears when hovering over the resume button in the Sources panel.
|
|
121
121
|
*/
|
|
122
122
|
resumeWithAllPausesBlockedForMs: 'Resume with all pauses blocked for 500 ms',
|
|
123
123
|
/**
|
|
124
|
-
* @description Tooltip text that appears when hovering over the
|
|
124
|
+
* @description Tooltip text that appears when hovering over the terminate execution button in the Sources panel.
|
|
125
125
|
*/
|
|
126
126
|
terminateCurrentJavascriptCall: 'Terminate current JavaScript call',
|
|
127
127
|
/**
|
|
128
|
-
* @description Text in Sources
|
|
128
|
+
* @description Text in Sources panel.
|
|
129
129
|
*/
|
|
130
130
|
pauseOnCaughtExceptions: 'Pause on caught exceptions',
|
|
131
131
|
/**
|
|
132
|
-
* @description A context menu item in the Sources
|
|
132
|
+
* @description A context menu item in the Sources panel.
|
|
133
133
|
*/
|
|
134
134
|
revealInSidebar: 'Reveal in navigator sidebar',
|
|
135
135
|
/**
|
|
136
|
-
* @description A context menu item in the Sources
|
|
136
|
+
* @description A context menu item in the Sources panel when debugging JavaScript code.
|
|
137
137
|
* When clicked, the execution is resumed until it reaches the line specified by the right-click that
|
|
138
138
|
* opened the context menu.
|
|
139
139
|
*/
|
|
140
140
|
continueToHere: 'Continue to here',
|
|
141
141
|
/**
|
|
142
|
-
* @description A context menu item in the Console that stores selection as a temporary global variable
|
|
142
|
+
* @description A context menu item in the Console panel that stores selection as a temporary global variable.
|
|
143
143
|
*/
|
|
144
144
|
storeAsGlobalVariable: 'Store as global variable',
|
|
145
145
|
/**
|
|
146
|
-
* @description A context menu item in the Console, Sources, and Network
|
|
146
|
+
* @description A context menu item in the Console, Sources, and Network panels.
|
|
147
147
|
* @example {string} PH1
|
|
148
148
|
*/
|
|
149
149
|
copyS: 'Copy {PH1}',
|
|
150
150
|
/**
|
|
151
|
-
* @description A context menu item for strings in the Console, Sources, and Network
|
|
151
|
+
* @description A context menu item for strings in the Console, Sources, and Network panels.
|
|
152
152
|
* When clicked, the raw contents of the string is copied to the clipboard.
|
|
153
153
|
*/
|
|
154
154
|
copyStringContents: 'Copy string contents',
|
|
155
155
|
/**
|
|
156
|
-
* @description A context menu item for strings in the Console, Sources, and Network
|
|
156
|
+
* @description A context menu item for strings in the Console, Sources, and Network panels.
|
|
157
157
|
* When clicked, the string is copied to the clipboard as a valid JavaScript literal.
|
|
158
158
|
*/
|
|
159
159
|
copyStringAsJSLiteral: 'Copy string as JavaScript literal',
|
|
160
160
|
/**
|
|
161
|
-
* @description A context menu item for strings in the Console, Sources, and Network
|
|
161
|
+
* @description A context menu item for strings in the Console, Sources, and Network panels.
|
|
162
162
|
* When clicked, the string is copied to the clipboard as a valid JSON literal.
|
|
163
163
|
*/
|
|
164
164
|
copyStringAsJSONLiteral: 'Copy string as JSON literal',
|
|
165
165
|
/**
|
|
166
|
-
* @description A context menu item in the Sources
|
|
166
|
+
* @description A context menu item in the Sources panel.
|
|
167
167
|
*/
|
|
168
168
|
showFunctionDefinition: 'Show function definition',
|
|
169
169
|
/**
|
|
170
|
-
* @description Text in Sources
|
|
170
|
+
* @description Text in Sources panel.
|
|
171
171
|
*/
|
|
172
172
|
openInSourcesPanel: 'Open in Sources panel',
|
|
173
173
|
/**
|
|
@@ -895,7 +895,8 @@ export class SourcesPanel extends UI.Panel.Panel implements
|
|
|
895
895
|
debugToolbarDrawer.classList.add('scripts-debug-toolbar-drawer');
|
|
896
896
|
|
|
897
897
|
const label = i18nString(UIStrings.pauseOnCaughtExceptions);
|
|
898
|
-
const setting =
|
|
898
|
+
const setting =
|
|
899
|
+
Common.Settings.Settings.instance().resolve(SDK.SDKSettings.pauseOnCaughtExceptionSettingDescriptor);
|
|
899
900
|
debugToolbarDrawer.appendChild(SettingsUI.SettingsUI.createSettingCheckbox(label, setting));
|
|
900
901
|
|
|
901
902
|
return debugToolbarDrawer;
|
|
@@ -33,26 +33,25 @@ import {Events as UISourceCodeFrameEvents, UISourceCodeFrame} from './UISourceCo
|
|
|
33
33
|
|
|
34
34
|
const UIStrings = {
|
|
35
35
|
/**
|
|
36
|
-
* @description Text to open a file
|
|
36
|
+
* @description Text to open a file.
|
|
37
37
|
*/
|
|
38
38
|
openFile: 'Open file',
|
|
39
39
|
/**
|
|
40
|
-
* @description Text to run commands
|
|
40
|
+
* @description Text to run commands.
|
|
41
41
|
*/
|
|
42
42
|
runCommand: 'Run command',
|
|
43
43
|
/**
|
|
44
|
-
* @description Text in Sources
|
|
44
|
+
* @description Text in Sources view of the Sources panel.
|
|
45
45
|
*/
|
|
46
46
|
workspaceDropInAFolderToSyncSources: 'To sync edits to the workspace, drop a folder with your sources here or',
|
|
47
47
|
/**
|
|
48
|
-
* @description Text in Sources
|
|
48
|
+
* @description Text in Sources view of the Sources panel.
|
|
49
49
|
*/
|
|
50
50
|
selectFolder: 'Select folder',
|
|
51
51
|
/**
|
|
52
|
-
* @description Accessible label for Sources placeholder view actions list
|
|
52
|
+
* @description Accessible label for Sources placeholder view actions list.
|
|
53
53
|
*/
|
|
54
54
|
sourceViewActions: 'Source View Actions',
|
|
55
|
-
|
|
56
55
|
} as const;
|
|
57
56
|
const str_ = i18n.i18n.registerUIStrings('panels/sources/SourcesView.ts', UIStrings);
|
|
58
57
|
const i18nString = i18n.i18n.getLocalizedString.bind(undefined, str_);
|
|
@@ -24,12 +24,12 @@ import {UISourceCodeFrame} from './UISourceCodeFrame.js';
|
|
|
24
24
|
|
|
25
25
|
const UIStrings = {
|
|
26
26
|
/**
|
|
27
|
-
* @description Text in Tabbed
|
|
28
|
-
* @example {
|
|
27
|
+
* @description Text in Tabbed editor container of the Sources panel.
|
|
28
|
+
* @example {file.js} PH1
|
|
29
29
|
*/
|
|
30
30
|
areYouSureYouWantToCloseUnsaved: 'Are you sure you want to close unsaved file: {PH1}?',
|
|
31
31
|
/**
|
|
32
|
-
* @description Error message for tooltip showing that a file in Sources could not be loaded
|
|
32
|
+
* @description Error message for tooltip showing that a file in the Sources panel could not be loaded.
|
|
33
33
|
*/
|
|
34
34
|
unableToLoadThisContent: 'Unable to load this content.',
|
|
35
35
|
/**
|
|
@@ -22,7 +22,6 @@ import * as SourceFrame from '../../ui/legacy/components/source_frame/source_fra
|
|
|
22
22
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
23
23
|
|
|
24
24
|
import {AiCodeCompletionPlugin} from './AiCodeCompletionPlugin.js';
|
|
25
|
-
import {AiWarningInfobarPlugin} from './AiWarningInfobarPlugin.js';
|
|
26
25
|
import {CoveragePlugin} from './CoveragePlugin.js';
|
|
27
26
|
import {CSSPlugin} from './CSSPlugin.js';
|
|
28
27
|
import {DebuggerPlugin} from './DebuggerPlugin.js';
|
|
@@ -351,7 +350,6 @@ export class UISourceCodeFrame extends Common.ObjectWrapper
|
|
|
351
350
|
ResourceOriginPlugin,
|
|
352
351
|
CoveragePlugin,
|
|
353
352
|
PerformanceProfilePlugin,
|
|
354
|
-
AiWarningInfobarPlugin,
|
|
355
353
|
];
|
|
356
354
|
|
|
357
355
|
if (AiCodeCompletion.AiCodeCompletion.AiCodeCompletion.isAiCodeCompletionAvailable()) {
|
|
@@ -56,7 +56,7 @@ import watchExpressionsSidebarPaneStyles from './watchExpressionsSidebarPane.css
|
|
|
56
56
|
|
|
57
57
|
const UIStrings = {
|
|
58
58
|
/**
|
|
59
|
-
* @description A context menu item in the
|
|
59
|
+
* @description A context menu item in the watch expressions sidebar of the Sources panel.
|
|
60
60
|
*/
|
|
61
61
|
addWatchExpression: 'Add watch expression',
|
|
62
62
|
/**
|
|
@@ -64,27 +64,27 @@ const UIStrings = {
|
|
|
64
64
|
*/
|
|
65
65
|
refreshWatchExpressions: 'Refresh watch expressions',
|
|
66
66
|
/**
|
|
67
|
-
* @description Empty element text content in
|
|
67
|
+
* @description Empty element text content in watch expressions sidebar of the Sources panel.
|
|
68
68
|
*/
|
|
69
69
|
noWatchExpressions: 'No watch expressions',
|
|
70
70
|
/**
|
|
71
|
-
* @description A context menu item in the
|
|
71
|
+
* @description A context menu item in the watch expressions sidebar of the Sources panel.
|
|
72
72
|
*/
|
|
73
73
|
deleteAllWatchExpressions: 'Delete all watch expressions',
|
|
74
74
|
/**
|
|
75
|
-
* @description A context menu item in the
|
|
75
|
+
* @description A context menu item in the watch expressions sidebar of the Sources panel.
|
|
76
76
|
*/
|
|
77
77
|
addPropertyPathToWatch: 'Add property path to watch',
|
|
78
78
|
/**
|
|
79
|
-
* @description A context menu item in the
|
|
79
|
+
* @description A context menu item in the watch expressions sidebar of the Sources panel.
|
|
80
80
|
*/
|
|
81
81
|
deleteWatchExpression: 'Delete watch expression',
|
|
82
82
|
/**
|
|
83
|
-
* @description Value element text content in
|
|
83
|
+
* @description Value element text content in watch expressions sidebar of the Sources panel.
|
|
84
84
|
*/
|
|
85
85
|
notAvailable: '<not available>',
|
|
86
86
|
/**
|
|
87
|
-
* @description A context menu item in the
|
|
87
|
+
* @description A context menu item in the watch expressions sidebar of the Sources panel and Network panel request.
|
|
88
88
|
*/
|
|
89
89
|
copyValue: 'Copy value',
|
|
90
90
|
} as const;
|
|
@@ -34,7 +34,7 @@ const UIStrings = {
|
|
|
34
34
|
*/
|
|
35
35
|
removeBlock: 'Remove this \'`ApplyTo`\'-section',
|
|
36
36
|
/**
|
|
37
|
-
* @description Error message for files which cannot
|
|
37
|
+
* @description Error message for files which cannot be parsed.
|
|
38
38
|
* @example {.headers} PH1
|
|
39
39
|
*/
|
|
40
40
|
errorWhenParsing: 'Error when parsing \'\'{PH1}\'\'.',
|
|
@@ -49,7 +49,7 @@ const UIStrings = {
|
|
|
49
49
|
*/
|
|
50
50
|
addOverrideRule: 'Add override rule',
|
|
51
51
|
/**
|
|
52
|
-
* @description Text which is a hyperlink to more documentation
|
|
52
|
+
* @description Text which is a hyperlink to more documentation.
|
|
53
53
|
*/
|
|
54
54
|
learnMore: 'Learn more',
|
|
55
55
|
} as const;
|