Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Server Offline Landing to Placeholder Widget #1043

Conversation

williamsyang-work
Copy link
Contributor

@williamsyang-work williamsyang-work commented Jan 30, 2024

Adds a prompt to start the server when the front-end detects that there is no server currently running. This provides a clearer application flow for the user.

Starting a server that has no traces stored.

screen-capture.2.webm

Starting a server with traces stored.

screen-capture.3.webm

Signed-off-by: Will Yang [email protected]

@williamsyang-work
Copy link
Contributor Author

Putting this back into draft mode for the time being.

@williamsyang-work williamsyang-work force-pushed the server-offline-landing branch 2 times, most recently from 07f3f22 to 862a4a8 Compare February 15, 2024 17:46
Adds a prompt to start the server when the front-end detects that there is no server
currently running.  This provides a clearer application flow for the user.

Signed-off-by: Will Yang <[email protected]>
const infoText = serverOn
? 'You have not yet opened a trace.'
: 'No trace server instance is currently running.';
const buttonText = serverOn ? 'Open Trace' : 'Resume Trace Extension';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't it be Reconnect instead of Resume Trace Extension?

return (
<ReactExplorerPlaceholderWidget
tracesOpen={tracesOpened}
serverOn={serverStatus}
handleStartServer={this.handleStartServer}
Copy link
Collaborator

Choose a reason for hiding this comment

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

By the way, when porting this change to the vscode-trace-extension, the start server command is only available if vscode-trace-server is installed, which is not always the case. So, starting the trace should be handled there using the start/stop vscode API that is provided by the vscode-trace-extension and which extensions can contribute the start/stop functionality. The vscode-trace-server is contributing to that API.

@williamsyang-work
Copy link
Contributor Author

Closing this.

@williamsyang-work williamsyang-work deleted the server-offline-landing branch August 21, 2024 20:54
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.

2 participants