Skip to content

Fix refresh of VIEWS view after applying configuration#365

Merged
bhufmann merged 1 commit into
eclipse-cdt-cloud:masterfrom
bhufmann:fix-config-refresh
Nov 7, 2025
Merged

Fix refresh of VIEWS view after applying configuration#365
bhufmann merged 1 commit into
eclipse-cdt-cloud:masterfrom
bhufmann:fix-config-refresh

Conversation

@bhufmann

@bhufmann bhufmann commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

What it does

Fix refresh of VIEWS view after applying configuration by adding missing await call when calling onCustomizationClick() when handling the customization click button. Waiting ensures that the method updateAvailableViews() method to refresh the view is called after the customization is applied.

Fixes #364

How to test

Create a valid InAndOut customization and make sure that the VIEWs view is showing the customized views.

Follow-ups

Review checklist

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

Add missing await call when calling onCustomizationClick() when
handling the customization click button. Waiting ensures that the
method updateAvailableViews() method to refresh the view is called
after the customization is applied.

Fixes eclipse-cdt-cloud#364

Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>

@TheMatthew TheMatthew left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I approve, but can you think of a unit test in the future? Really curious.

@bhufmann

bhufmann commented Nov 7, 2025

Copy link
Copy Markdown
Contributor Author

I approve, but can you think of a unit test in the future? Really curious.

Yes, Unit tests would be good. Right now the vscode-trace-extension has only limited playwright tests and there are no tests testing the webviews itself. There needs to be some initial webview tests first implemented to add specific test. I defer adding tests that tests this PR when those tests are available.

Beyond vscode-trace-extension specific tests, there should be specific tests testing the traceviewer-libs components. A few of them are still in the theia-trace-extension repository. Testing the libs needs some overall work on the testing strategy.

@bhufmann bhufmann merged commit 35915f2 into eclipse-cdt-cloud:master Nov 7, 2025
7 of 8 checks passed
@bhufmann bhufmann deleted the fix-config-refresh branch November 7, 2025 15:55
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.

The VIEWS window is not automatically populated with new configured views

3 participants