mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 17:19:01 +01:00
reset dirty state when reverting a notebook, update extension host when dirty state of a notebook (working copy) changes
This commit is contained in:
@@ -578,7 +578,14 @@ export class ExtHostNotebookController implements ExtHostNotebookShape, ExtHostN
|
||||
}
|
||||
}
|
||||
|
||||
public $acceptModelSaved(uriComponents: UriComponents): void {
|
||||
$acceptDirtyStateChanged(resource: UriComponents, isDirty: boolean): void {
|
||||
const document = this._documents.get(URI.revive(resource));
|
||||
if (document) {
|
||||
document.acceptModelChanged({ rawEvents: [], versionId: document.notebookDocument.version }, isDirty);
|
||||
}
|
||||
}
|
||||
|
||||
$acceptModelSaved(uriComponents: UriComponents): void {
|
||||
const document = this._documents.get(URI.revive(uriComponents));
|
||||
if (document) {
|
||||
// this.$acceptDirtyStateChanged(uriComponents, false);
|
||||
|
||||
Reference in New Issue
Block a user