Skip to content

Conversation

@bhufmann
Copy link
Contributor

@bhufmann bhufmann commented Jun 27, 2023

This change uses the vscode-trace-server commands to start a trace server and when the server is started it will perform the pending open command.

This change relies on the vscode-trace-server extension.

In a future release an API can be introduced so that an extension can register the start/stop commands and also the started notification. This future enhancement would decouple the vscode-trace-extension with the vscode-trace-server implementation.

Fixes #15

Signed-off-by: Bernd Hufmann [email protected]

@bhufmann
Copy link
Contributor Author

Replaces #142 which this one is inspired by.

Copy link

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

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

The code looks pretty good to me. Perhaps @hriday-panchasara could give it a quick functional test to catch any subtleties I've missed.

Copy link
Contributor

@hriday-panchasara hriday-panchasara left a comment

Choose a reason for hiding this comment

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

Works as expected, thanks for the contribution.

This change uses the vscode-trace-server commands to start a trace
server and when the server is started it will perform the pending
open command.

This change relies on the vscode-trace-server extension.

In a future release an API can be introduced so that an extension
can register the start/stop commands and also the started notification.
This future enhancement would decouple the vscode-trace-extension with
the vscode-trace-server implementation.

Contributes to fixing Issue eclipse-cdt-cloud#15

Signed-off-by: Bernd Hufmann <[email protected]>
@bhufmann bhufmann merged commit 2f4197b into eclipse-cdt-cloud:master Jul 5, 2023
@bhufmann bhufmann deleted the auto-start branch July 5, 2023 12:42
@bhufmann
Copy link
Contributor Author

bhufmann commented Jul 5, 2023

I'll open an new issue tracker for introducing an external API so that an extension can register the start/stop commands and also the started notification. This future enhancement would decouple the vscode-trace-extension with the vscode-trace-server implementation. See also #149 about the external API discussions.

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.

Migrate start and stop of trace server using the backend

3 participants