mark containing project as dirty when file is closed (#12789)

* mark containing project as dirty when file is closed

* remove debugger statement
This commit is contained in:
Vladimir Matveev authored and GitHub committed 2016-12-09 14:21:56 -08:00
1 parent a2fb5f9ce8
commit 798d080df1
3 files changed
+67 -5

No files matched your search

+4 -3
View File
@@ -28,9 +28,9 @@ namespace ts.server {
this.switchToScriptVersionCache(newText);
}
public useText() {
public useText(newText?: string) {
this.svc = undefined;
this.reloadFromFile();
this.setText(newText);
}
public edit(start: number, end: number, newText: string) {
@@ -199,7 +199,8 @@ namespace ts.server {
public close() {
this.isOpen = false;
this.textStorage.useText();
this.textStorage.useText(this.hasMixedContent ? "" : undefined);
this.markContainingProjectsAsDirty();
}
public getSnapshot() {