Skip to content

Conversation

@marcdumais-work
Copy link
Contributor

@marcdumais-work marcdumais-work commented Aug 26, 2025

What it does

Updates "traceviewer-libs" from repo eclipse-cdt-cloud/vscode-trace-extension. The update contains little changes that were made after the traceviewer libraries were added as a local git subtree:

  • some library code needed update to respect prettier v3.x (v2.x was originally used)
  • a couple of dependencies relied on what was being pulled in the repo - updated the libraries to pull/request their own version (prettier, @types/lodash, @types/lodash-debounce. This makes the libraries less reliant to whatever version of these dependencies happen to be used in the host repo. There will probably be more to similarly adjust in the future, e.g. if/when they cause an issue.
  • some configuration files in the host repo root are accessed relatively (e.g. ../../../<cfg_file>) and need adjusting for the new library folder that's one level deeper vs before (works as updated in in both theia-trace-extension and vscode-trace-extension)

How to test

Confirm that CI passes

Follow-ups

Review checklist

  • As an author, I have thoroughly tested my changes and carefully followed the instructions in this template

Small adaptations to root package.json, various tsconfig.json.

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>

Add README under local-libs

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>

[traceviewer-react] add missing @types/lodash.debounce dev dependency

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>

Align eslint config with theia-trace-extension

For smoother sharing of the traceviewer-* libraries

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>

[traceviewer-*] align code to respect linter and formatter

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>

update yarn.lock

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>

Improved watch mode

With a correct tsconfig.json setup, it's possible to watch
all the typescript workspaces' code using a single "tsc -b -w",
executed at the repo root. It's also necessary to cover webpack
where it is used.

https://webpack.js.org/configuration/watch

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>

Update root README

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
When the traceviewer-libs git subtree was initially added,
running prettier (yarn format:check) would fail locally.
This was since determine to be because this repo here was
already pulling a more recent version of "prettier" than
the theia extension repo: v3.x vs v2.x.

The local version of the subtree already has the libraries'
code adapted to pass the check with prettier@3. That version
was explicitly added as a devDependency to the traceviewer-
react-components library, but for completeness, we now add
it to traceviwewer-base as well, to be sure the format check
will be identical in both repositories, no matter the version
of prettier that may be pulled in the root package.json or
other components, in either / both repositories.

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
In the subtree README, "git subtree push -p <subtree folder" was
documented. Not sure where this came from, but my local git won't
accept it, instead expecting:
"git subtree push --prefix <subtree folder"

Corrected in this commit.

Signed-off-by: Marc Dumais <marc.dumais@ericsson.com>
@marcdumais-work marcdumais-work changed the title Update from vscode trace extension - prettier3 Update from vscode trace extension - prettier v3.x Aug 26, 2025
Copy link
Contributor

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@bhufmann bhufmann merged commit 0c2bddb into master Sep 11, 2025
2 checks passed
@marcdumais-work marcdumais-work deleted the update-from-vscode-trace-extension_prettier3 branch September 11, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants