Commit Graph
6 Commits
Author SHA1 Message Date
Jack Franklin db52fce504 Define window.scheduler as non-optional
We used the wicg-task-scheduling types for `window.scheduler` but it
types it as optional - this is true for the general case but because we
are in Chrome we know it exists.

Unfortunately you cannot override the member from optional or not on
`Window`, so this CL removes the use of the
`@types/wicg-task-scheduling` package and reuses the code inline with
the extension to the `Window` interface making it always present.

Bug: none
Change-Id: I8399d3477f89f88e758ed31399c6256fcbd31de9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6393155
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: Connor Clark <cjamcl@chromium.org>
Commit-Queue: Connor Clark <cjamcl@chromium.org>
2025-03-25 12:28:00 -07:00
Simon Zünd 8cedabfd47 [build] Remove 'devtools_use_remoteexec' GN arg
This was an initial experiment to make ts_library work with goma. We
got as far as building leaf modules remotely but getting the rest to
work was deemed infeasible.

This CL removes the prototype.

Note that this is different from siso + use_remoteexec. That works
silently under the hood and only relies on inputs/outputs being
defined correctly. It doesn't require special support in our
ts_library.py.

R=pfaffe@chromium.org

Bug: 40153338
Change-Id: I6de5e30eeb74b80a2ec591dfff0f700a584a43a7
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6309563
Reviewed-by: Philip Pfaffe <pfaffe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2025-03-03 00:01:03 -08:00
Liviu Rau 9f15bec464 Handle non-hosted types for mocha
Bug: 390535614
Change-Id: I294c2e561bfb6749173d5108fe23a99e722f8cfb
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6304927
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Reviewed-by: Simon Zünd <szuend@chromium.org>
Commit-Queue: Liviu Rau <liviurau@chromium.org>
2025-02-27 10:04:10 -08:00
Nikolay Vitkov 0645c18689 Rewrite TypeScript error paths
Trying to rewrite the error output in the terminal so that the link
created does not include the `../..` prefix, that way a person can open
the link directly in VsCode when clicking on it.

Bug: none
Change-Id: Iee59406d0f00e1d7bc7058e7e8e52033c21c9940
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6226102
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Nancy Li <nancyly@chromium.org>
2025-02-05 08:27:30 -08:00
Jayson Chen 2e999d1495 Add wicg scheduling API definition
window.scheduler.postTask and .yield are originally not available in the devtools-frontend codebase. This CL added the type definition so Typescript recognizes the API

Bug: 383240467
Change-Id: I4a395aca4e3956ceaa08053dcded5017f0ed10b1
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6081857
Reviewed-by: Robert Paveza <Rob.Paveza@microsoft.com>
Commit-Queue: Jayson Chen <jaysonchen@microsoft.com>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
2024-12-10 20:09:10 +00:00
Simon Zünd e20bdacd07 [deps] Move ts_library out of third_party
ts_library.py and typescript.gni do not contain any third party code.
They had the Chromium license headers from the beginning. The only
"third-party"ness they have, is that they use the "typescript"
npm package.

R=alexrudenko@chromium.org

Fixed: 362397305
Change-Id: I33a2ee2817c940e365f810e897de5907bf586093
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5816329
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
2024-08-27 10:47:27 +00:00