mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
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:
1 parent
a2fb5f9ce8
commit
798d080df1
3 files changed
+67
-5
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user