-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add Server Offline Landing to Placeholder Widget #1043
Conversation
0c9f5d5
to
ff89b73
Compare
Putting this back into draft mode for the time being. |
07f3f22
to
862a4a8
Compare
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]>
b0376b6
to
2d5c012
Compare
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'; |
There was a problem hiding this comment.
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} |
There was a problem hiding this comment.
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.
Closing this. |
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]