Skip to content

Conversation

@bhufmann
Copy link
Contributor

@bhufmann bhufmann commented Oct 22, 2025

What it does

Update recent changes from vscode trace extension.

How to test

Successful CI

Follow-ups

Make a local build work and enable tests again.

Review checklist

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

marcdumais-work and others added 11 commits August 18, 2025 15:34
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>
Extract util methods from abstract-xy-output-component so
that later they can be shared with generic xy view.

Signed-off-by: Siwei Zhang <siwei.zhang@ericsson.com>
Implement the new generic xy view to support non-time
x-axis xy view. This new view uses a new  endpoint in
the tsp introduced in:

eclipse-cdt-cloud/trace-server-protocol#114

Signed-off-by: Siwei Zhang <siwei.zhang@ericsson.com>
Since commit d857eae where the vscode-messenger was introduced this
feature has been broken. The request to update the selection range
after submitting the new range from the Time Range Data view was not
propagated to the trace viewer webview where the time axis and selection
is updated. This PR fixes this.

Note that this fix sends the selection range to the correct widget and
handles the bigint values in the signal payload correctly.

fixes #357

Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Update parsing of sampling to match tsp specification

The tsp-typescript-client was modified to comply to tsp
specification for sampling, update accordingly here.

Account for new xRanges and xCategories for generic xy output component.

Contributes to fix:
eclipse-tracecompass-incubator/org.eclipse.tracecompass.incubator#236

Upgrade to tsp-typescript-client v0.9.0.

Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Co-authored-by: Siwei Zhang <siwei.zhang@ericsson.com>
Co-authored-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
 - traceviewer-base@0.10.0
 - traceviewer-react-components@0.10.0
 - vscode-trace-common@0.7.0
 - vscode-trace-extension@0.7.0
 - vscode-trace-webviews@0.7.0
@bhufmann bhufmann force-pushed the update-from-vscode-trace-extension branch from 0a06689 to e852157 Compare October 22, 2025 15:37
and then new version is not on NPM yet.

Add a config directory with package.json file that is copied to the root
directory during CI.

Disable tests because they require the packages to be on NPM.

Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
@bhufmann bhufmann force-pushed the update-from-vscode-trace-extension branch from e852157 to 6f5432a Compare October 22, 2025 15:40
Copy link
Contributor

@marcdumais-work marcdumais-work left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@bhufmann bhufmann merged commit 7c25731 into master Oct 23, 2025
2 checks passed
@bhufmann bhufmann deleted the update-from-vscode-trace-extension branch October 23, 2025 13:03
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.

5 participants