Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support tracking dirty state of unclosed files #7532

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 7 commits into from
Sep 23, 2019
Merged

Conversation

rchiodo
Copy link

@rchiodo rchiodo commented Sep 21, 2019

For #7418

Use the workspace memento to track dirty state of files as the user makes them dirty

@@ -39,16 +49,22 @@ export class NativeEditorProvider implements INotebookEditorProvider, IAsyncDisp
if (findFilesPromise && findFilesPromise.then) {
findFilesPromise.then(r => this.notebookCount += r.length);
}

// // Reopen our list of files that were open during shutdown. Actually not doing this for now. The files
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit confused on this. Why are we adding the memento here then?

Copy link
Author

Choose a reason for hiding this comment

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

We don't actually need it. I left it here in case we changed our minds.

Copy link
Author

Choose a reason for hiding this comment

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

But it's not exactly complicated. I can just remove its usage

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I just wanted adding it removed if we are not consuming it yet. Fine to keep it commented out, but I didn't want it in the storage and not being used.


In reply to: 327248488 [](ancestors = 327248488)

@codecov-io
Copy link

codecov-io commented Sep 23, 2019

Codecov Report

Merging #7532 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7532   +/-   ##
=======================================
  Coverage   58.85%   58.85%           
=======================================
  Files         492      492           
  Lines       21823    21823           
  Branches     3501     3501           
=======================================
  Hits        12843    12843           
  Misses       8179     8179           
  Partials      801      801
Impacted Files Coverage Δ
src/client/datascience/types.ts 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9dec031...f4ccf43. Read the comment docs.

Copy link
Member

@IanMatthewHuff IanMatthewHuff left a comment

Choose a reason for hiding this comment

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

:shipit:

@rchiodo rchiodo merged commit d97fee9 into master Sep 23, 2019
@rchiodo rchiodo deleted the rchiodo/hot_exit branch September 23, 2019 19:34
@lock lock bot locked as resolved and limited conversation to collaborators Sep 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants