-
Notifications
You must be signed in to change notification settings - Fork 323
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 a shortcut for interrupting the program #3967
Conversation
fn restart(&self) -> BoxFuture<FallibleResult> { | ||
async move { | ||
self.language_server.client.recompute(&self.id).await?; | ||
Ok(()) | ||
} | ||
.boxed_local() |
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.
- is restarting automatically interrupting?
- Is interrupting pausing until its restarted? It should.
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.
yes and yes
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.
Please apply my comment before merging.
/// Execution Context handle, its call stack top contains `graph`'s definition. | ||
execution_ctx: model::ExecutionContext, | ||
pub execution_ctx: model::ExecutionContext, |
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.
This field was private for a reason: otherwise, someone could manually push a frame there without changing the graph
field, which should always point to the definition on top of the frame.
Please, make it private and add interrupt
and restart
methods to this handle.
Pull Request Description
Add shortcuts for interrupting and restarting the program execution.
Important Notes
Checklist
Please include the following checklist in your PR:
Scala,
Java,
and
Rust
style guides.
./run ide build
and./run ide watch
.