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

Run worksheets after willSave instead of didSave #5553

Merged
merged 1 commit into from
Dec 2, 2018

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Dec 1, 2018

We were triggering the worksheet run after a didSave event. This means
that, if the file was unmodified, hitting <ctrl-s> would not re-run
the worksheet, even though the previous output would disappear.

We know run the worksheet after the willSave event, which is triggered
regardless of the buffer state. This is not an issue for the language
server which uses the tree that it has in memory rather than what's on
disk at the moment.

We were triggering the worksheet run after a `didSave` event. This means
that, if the file was unmodified, hitting `<ctrl-s>` would not re-run
the worksheet, even though the previous output would disappear.

We know run the worksheet after the `willSave` event, which is triggered
regardless of the buffer state. This is not an issue for the language
server which uses the tree that it has in memory rather than what's on
disk at the moment.
@Duhemm Duhemm added the area:ide label Dec 1, 2018
@Duhemm Duhemm merged commit 5d1efe3 into scala:master Dec 2, 2018
@Duhemm Duhemm deleted the fix/worksheet-keep-output branch December 2, 2018 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants