Commit Graph
26 Commits
Author SHA1 Message Date
Kim-Anh Tran f2140378e0 [BreakpointSidebarPane] Show re-designed sidebar
This CL makes use of the BreakpointsView in order
to show breakpoints if the experiment is enabled, see:
'Enable re-design Breakpoint Sidebar Pane in the Sources
Panel'

How to reproduce:
* Enable experiment
* Navigate to Sources Panel
* Set a breakpoint in a source file

Limitations:
Currently all interaction within the panel are not
forwarded to the internal logic. This CL is only
for showing the new pane.

Drive-by: CSS padding fix
Before/After: https://imgur.com/a/mKKOvYs
Doc: https://bit.ly/3pa4y92
Bug: 1346231, 1324904
Change-Id: Ia209b6d395e79a47696c659ad14eff3076cf5541
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3858290
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
2022-08-29 11:32:39 +00:00
Philip Pfaffe 4fda5ac1b3 Simplify ContentProvider
This CL removes the contentEncoded property from ContentProvider. The
information is redundant and already contained in the content that is
provided.

Drive-by: Simplify the content provider implementation in Script.

Bug: none
Change-Id: I99749a2000c353aabfb894b1bcb6a334f0be9bd7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3802968
Commit-Queue: Philip Pfaffe <pfaffe@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
2022-08-02 12:38:23 +00:00
Eric Leese c010ce7baa Experiment to hide ignore listed code in source tree
Bug: 1336604
Change-Id: I633390a187986376b71e9f1a27989be66bfb70c5
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3785005
Reviewed-by: Victor Porof <victorporof@chromium.org>
Commit-Queue: Victor Porof <victorporof@chromium.org>
2022-08-02 07:12:04 +00:00
Jack Franklin 3a80260722 Inline type imports in front_end
This CL enables the `inline_type_imports` rule for devtools-frontend,
and is the result of running the auto-fixer to update all imports
accordingly.

Bug: 1319340
Change-Id: I303256476fd4e94f4505bbf4355c0070ac101aa9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3752799
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-07-13 09:26:00 +00:00
Eric Leese 2b7af4f0ca Account for content type when doing script deduplication
Content type includes whether the script is from source maps,
so this is sufficient to prevent a script from source maps from
conflicting with a deployed script.

ID for deduplication is now distinct from url for history tracking,
as we may want the former to change when updating the content but
not the latter.

Bug: 1335076
Change-Id: I72d916045b40adb999dccbe87f1c5a69feb1ee98
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3698000
Reviewed-by: Victor Porof <victorporof@chromium.org>
Commit-Queue: Victor Porof <victorporof@chromium.org>
2022-06-13 09:01:35 +00:00
Eric Leese 6bc65d0595 Add option to group by Authored/Deployed
- adds a menu item to change the sources tree layout to group
   authored content from source maps under a separate subtree
   to make it easier to find sources likely to be of interest
 - default remains unchanged
 - legacy Treeoutline now supports new Icon component so that
   new icons do not need to be added to legacy icon sheets
 - lays groundwork for future changes to script identity for
   source deduplication, as we may now need to deduplicate
   sources in the tree view that would previously only have
   been deduplicated when opening source tabs

Bug: 960909
Change-Id: I2fcee95eb5cb1da5a7725301e72e67df42bf3f11
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3653566
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Victor Porof <victorporof@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Eric Leese <leese@chromium.org>
2022-05-24 09:00:33 +00:00
Kateryna Prokopenko 639a9de9d1 Type all URL and path variables in UISourceCode to Branded Types
Bug: 1299780
Change-Id: I133ae77524d058cddcecb220fec1f7bd52116183
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3484202
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-03-22 11:27:28 +00:00
Kateryna Prokopenko ac21da4db6 Type path in createFile as EncodedPathString
Bug: 1253323
Change-Id: Icc520f383e032a8a6be8cbaffded2d2896ac4d37
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3470238
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-03-14 13:04:15 +00:00
Kateryna Prokopenko 43b58939ab Remove casts to EncodedPathString from ScriptSnippetFileSystem
Bug: 1299786
Change-Id: I8b874211d44bc203391819a4653447a67b8c2fe1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3470236
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-03-14 09:33:46 +00:00
Wolfgang Beyer 27a5b849e1 Improve handling of file name changes for local overrides
One can change the file type of a file in the local overrides folder by
renaming the file. Such a rename can cause a different viewer to be
more appropriate for handling this file (e.g. when renaming a html-file
into a jpg, the file should now be handled by an image viewer). This CL
makes sure that in this scenario, the existing editor tab is closed and
a new one with an editor of the correct type is opened.

Unsaved changes in the file are not lost and it is ensured that there
is no unnecessary dialog popping up with a warning about external
changes to the file.

Bug: 1297532
Change-Id: I95098e15455c2ca328be00515941fe0950e5e3e0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3468521
Reviewed-by: Danil Somsikov <dsv@chromium.org>
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
2022-02-22 12:20:26 +00:00
Kateryna Prokopenko 9d068e57a8 Remove some casts to UrlString and move some up the call stack
Bug: 1253323
Change-Id: Idb5150deabffe26a8c21987a55206729b3781655
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3423898
Reviewed-by: Eric Leese <leese@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-02-16 09:08:28 +00:00
Kateryna Prokopenko 89b6f6d75e Remove cast to UrlString from WorkspaceImpl
Bug: 1253323
Change-Id: Iba59eb081e5fa87e4aec315fc62dbcc995a7df91
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3420335
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-02-15 15:05:48 +00:00
Kateryna Prokopenko 3aba969ba6 Add .js extension to snippets url when handling Save as
Bug: 1137218
Change-Id: Ie9eebf8fbf7d1e96a43d3e41a345bec78dd127cf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3418501
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-02-15 09:19:49 +00:00
Kateryna Prokopenko 3671fa6556 Fix path encodings
Bug: 1253323
Change-Id: Iefa0517bb39d2f000f5abf1f184887325702c52a
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3344916
Reviewed-by: Simon Zünd <szuend@chromium.org>
Reviewed-by: Eric Leese <leese@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2022-02-14 08:10:56 +00:00
Wolfgang Beyer b4228b0d04 Optional chaining for UISourceCode.ts
Bug: none
Change-Id: Ia253535915f3735b669e8cd677c3c4e2ba87aa69
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3418497
Commit-Queue: Wolfgang Beyer <wolfi@chromium.org>
Auto-Submit: Wolfgang Beyer <wolfi@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2022-01-27 09:15:15 +00:00
Tim van der Lippe 6bcbe0f26d Use window.setTimeout to avoid TS errors in VS Code
R=aerotwist@chromium.org

Bug: none
Change-Id: I632aa0beb0e157197f5c2f982c2082a6d67f87f4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3380595
Auto-Submit: Tim Van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
2022-01-11 19:17:48 +00:00
Tim van der Lippe 2d9a95ce7b Suppress all existing promise races
To suppress the races, we mark these invocations with `void` per
the instructions of `no-floating-promises`. This explicitly marks
these statements as side-effect promises.

Engineers can later analyze these void statements and determine
whether the promise races are intentional or accidental.

R=jacktfranklin@chromium.org

Bug: 1239617
Change-Id: I6b7a24cf21029d6ff73b112b3e8255ebab8c60ec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3366467
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Tim Van der Lippe <tvanderlippe@chromium.org>
2022-01-04 16:08:08 +00:00
Kateryna Prokopenko cae13bb94a Remove all DevToolsPath types as some of them might be incorrect
In order to avoid additional difficulties when typing paths in DevTools
discard the previous (possibly incorrect).

Bug: 1253323
Change-Id: Id4076900a44e9f06440cbfb4b99bed90f1ceb1f0
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3297832
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2021-11-24 08:51:25 +00:00
Tim van der Lippe c1ab112d90 Port the sources panels to CM6
R=tvanderlippe@chromium.org

Bug: 1241848
Change-Id: Idfe1658c9c2948b5c79c2845b9fd9472746a62b9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3247435
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-11-12 16:47:28 +00:00
Brandon Walderman 666b40a5b6 Add column number to linkified sources in the performance panel
This changes updates the Linkifier with an option to include the column
number in the link text if available. Also taking the opportunity to
remove some run-time type checks that are no longer needed thanks to the
TypeScript migration.

Including the column number in source links helps developers who are
looking at a performance profile "offline" find the function that was
called within the source file. When only a line number is given, this
is more difficult, especially for minified JavaScript files where there
may be many function definitions on the same line.

Bug: 1252049
Change-Id: I1e33583010c8f5d62789e4341ca5b4f6b2c9cd58
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3176625
Commit-Queue: Brandon Walderman <brwalder@microsoft.com>
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-10-19 21:03:44 +00:00
Kateryna Prokopenko 6b831e3f67 Retype incorrect types from UrlString to RawPathString
Bug: 1253323
Change-Id: Ie1c0504db44583b39d3c9df4cb971e573f6d332f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3229762
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
2021-10-19 09:36:51 +00:00
Kateryna Prokopenko 0623fac554 Remove casts to UrlString from PersistenceAction
Bug: 1253323
Change-Id: I09531fb20ad71c3bd4ffa79ca829d26afedd8f84
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3222665
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-10-14 12:53:56 +00:00
Kateryna Prokopenko 9fb8069c9d Use type-safe events for UISourceCode
Bug: 1228674
Change-Id: Iee1d957b14111660c1441e8b2cb9e4e8f8572c31
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3083711
Commit-Queue: Kateryna Prokopenko <kprokopenko@google.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-08-10 13:36:51 +00:00
Jan Scheffler 744e3fb5cd [Underscore Migration] Migrate models
This patch is part of the underscore migration that adds the private
keyword to all properties that start with an underscore and removes the
underscore.

Bug:chromium:1207342
Change-Id: Ia25ac337cf7be99e2b18b95cf15f19eb559f22fe
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3077389
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Auto-Submit: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-08-10 11:10:51 +00:00
Jan Scheffler f33718c8f8 [Underscore Migration] Migrate models/workspace
This patch is part of the underscore migration that adds the private
keyword to all properties that start with an underscore and removes the
underscore.

Bug:chromium:1207342
Change-Id: Ibf3cf7532343b02abb76b8d6df153c049c932b18
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3078241
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Auto-Submit: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-08-06 17:38:47 +00:00
Tim van der Lippe 99aeaf3724 Move workspace to models/workspace
R=jacktfranklin@chromium.org

No-Presubmit: true
Bug: 1187573
Change-Id: Ia4bf7cb736dca976fb30d9e94beeda3e28115dce
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2815118
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2021-04-09 15:32:33 +00:00