Skip to content

Fix #5284: Restore worksheet decorations #5289

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

Merged
merged 1 commit into from
Oct 18, 2018
Merged

Conversation

Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Oct 18, 2018

When switching tabs, VSCode discards the text decorations that were
added by worksheet evaluation. We now keep them in memory so that they
can be added again when coming back to the worksheet.

@Duhemm Duhemm requested a review from smarter October 18, 2018 12:52
/** A worksheet managed by vscode */
class Worksheet implements Disposable {

/** The version of this document the last time it was run */
private runVersion: number = 0
Copy link
Member

Choose a reason for hiding this comment

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

Maybe use -1 since 0 could be a valid version ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed it

When switching tabs, VSCode discards the text decorations that were
added by worksheet evaluation. We now keep them in memory so that they
can be added again when coming back to the worksheet.
@Duhemm Duhemm merged commit ee1b514 into scala:master Oct 18, 2018
@Duhemm Duhemm deleted the fix/5284 branch October 18, 2018 14:53
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.

2 participants