Commit Graph
6 Commits
Author SHA1 Message Date
Marijn Haverbeke 3ea8755408 Remove machinery surrounding CodeMirror 5
The third_party module is still there because a few of its scripts are
used for tokenizing.

R=tvanderlippe@chromium.org

Bug: 1241848
Change-Id: I576b7c1a0fb6c78ca83422fdb9117f169a75efb7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3295489
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
2021-11-29 15:10:46 +00:00
Jan Scheffler 2b20a3d6ec [Underscore Migration] Migrate models/text_utils
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: I956106361701d8c686a1e43e45ee9fb8d8c64a94
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3078239
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:12:46 +00:00
Victor Porof 66878d6044 Add an 'invert' checkbox to invert all network filters
This functionality adds on top of the existing query mechanism, rather
than modify it.

This is because a query string can have multiple filters, some of them
regular expressions, some not. Each one of those filters could already
be negated with a "-" prefix, including the regular expressions. The
newly added top-level `invert` checkbox therefore inverts each one of
those individual filters, and properly handle the situation where a
query has multiple filters each with its own optional negation.

The drive-by changes to TextUtils.ts are primarily cosmetic, modernising
the JS slightly to help readability.

Change-Id: I3d429a98074eb3517ec891a848ea75c6c96d1ea5
Signed-off-by: Victor Porof <victorporof@chromium.org>
Bug: 1054464
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3034342
Reviewed-by: Mathias Bynens <mathias@chromium.org>
2021-07-16 13:51:59 +00:00
Olivia Flynn 35c7fa3507 [Search][Sources] Jump to correct column when revealing search result
This CL adds an optional column number to the SearchMatch class so that
we can move the text cursor to the correct spot when a search result is
revealed. This causes the search term to be shown when pretty printing,
which addresses the pain point described in the bug.
Before/after GIFs: https://imgur.com/a/bahmM8V

Bug: 1227533
Change-Id: I4c00267f9b534d0063b29d0ae8cfd0c83a42a376
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3016612
Commit-Queue: Olivia Flynn <flynnolivia@microsoft.com>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-07-12 17:29:43 +00:00
Tim van der Lippe 443cc1e549 Move CodeMirror types to third_party/codemirror
Some files that don't import codemirror itself do refer to types
as declared by CodeMirror, which therefore need to implicitly
side-effect import the types. The reason being that these files
are used in both the standalone and full version of CodeMirror
(depending on whether they run in a worker context or not).
Therefore, they can't import `third_party/codemirror/codemirror.ts`,
as that would only contain the full version.

DISABLE_THIRD_PARTY_CHECK=Tsc update
R=szuend@chromium.org

Bug: 1209844
Change-Id: I8719a15b40e9d9f085b24c05af4372ad84812d1f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2897979
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
2021-05-18 10:07:14 +00:00
Jan Scheffler ae1b1cf869 [JSDOC2TS]: Migrate text_utils
Bug: chromium:1158760
Change-Id: I9f2724bee11e3d113382ecf66f6d27b49845e398
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2789351
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2021-04-14 17:15:01 +00:00