Yang Guo 5e45944cc3 Fix pretty print for expressions within template literals
A TemplateLiteral consists of alternating TemplateElement and
non-TemplateElement nodes, with tokens in between:

<TemplateLiteral>
  <tokens> -- formatted in #beforeVisit for TemplateElement
  <TemplateElement> -- formatted in #afterVisit for TemplateElement
     <tokens>
  <TemplateElement>
  <tokens> -- formatted in #beforeVisit for Expression
  <Expression> -- formatted in #afterVisit for Expression
      ...
  </Expression>
</TemplateLiteral>

We must not insert spaces while formatting within a TemplateLiteral
with the exception of the Expression. This happens within
the #afterVisit call to non-TemplateElement.

Fixed: 386857215
Change-Id: I0269747e825f64ecccb32c52f5a372b3d915e4ed
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6168856
Auto-Submit: Yang Guo <yangguo@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Yang Guo <yangguo@chromium.org>
2025-01-14 01:58:38 -08:00
2025-01-13 19:43:58 -08:00
2025-01-13 06:01:14 -08:00
2025-01-13 21:07:49 -08:00
2024-12-10 15:13:30 +00:00
2023-11-17 06:18:48 +00:00
2021-04-16 07:38:35 +00:00
2020-08-21 05:51:47 +00:00
2025-01-03 02:57:06 -08:00
2025-01-13 19:43:58 -08:00
2024-04-18 08:19:16 +00:00
2025-01-13 21:07:49 -08:00
2025-01-13 21:07:49 -08:00
2024-08-22 11:42:18 +00:00

Chrome DevTools frontend

npm package

The client-side of the Chrome DevTools, including all TypeScript & CSS to run the DevTools webapp.

Source code and documentation

The frontend is available on chromium.googlesource.com. Check out the Chromium DevTools documentation for instructions to set up, use, and maintain a DevTools front-end checkout, as well as design guidelines, and architectural documentation.

Source mirrors

DevTools frontend repository is mirrored on GitHub.

DevTools frontend is also available on NPM as the chrome-devtools-frontend package. It's not currently available via CJS or ES modules, so consuming this package in other tools may require some effort.

The version number of the npm package (e.g. 1.0.373466) refers to the Chromium commit position of latest frontend git commit. It's incremented with every Chromium commit, however the package is updated roughly daily.

Getting in touch

There are a few options to keep an eye on the latest and greatest of DevTools development:

S
Description
No description provided
Readme BSD-3-Clause
1.1 GiB
Languages
TypeScript 88.2%
JavaScript 5.7%
CSS 3%
HTML 1.4%
Python 0.8%
Other 0.8%