File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,6 @@ namespace ts.server {
212
212
*/
213
213
private projectStateVersion = 0 ;
214
214
215
-
216
215
private typingFiles : SortedReadonlyArray < string > ;
217
216
218
217
protected projectErrors : Diagnostic [ ] ;
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ namespace ts.server {
28
28
this . switchToScriptVersionCache ( newText ) ;
29
29
}
30
30
31
- public useText ( ) {
31
+ public useText ( newText ?: string ) {
32
32
this . svc = undefined ;
33
- this . reloadFromFile ( ) ;
33
+ this . setText ( newText ) ;
34
34
}
35
35
36
36
public edit ( start : number , end : number , newText : string ) {
@@ -198,7 +198,8 @@ namespace ts.server {
198
198
199
199
public close ( ) {
200
200
this . isOpen = false ;
201
- this . textStorage . useText ( ) ;
201
+ this . textStorage . useText ( this . hasMixedContent ? "" : undefined ) ;
202
+ this . markContainingProjectsAsDirty ( ) ;
202
203
}
203
204
204
205
public getSnapshot ( ) {
You can’t perform that action at this time.
0 commit comments