File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,6 @@ namespace ts.server {
212212 */
213213 private projectStateVersion = 0 ;
214214
215-
216215 private typingFiles : SortedReadonlyArray < string > ;
217216
218217 protected projectErrors : Diagnostic [ ] ;
Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ namespace ts.server {
2828 this . switchToScriptVersionCache ( newText ) ;
2929 }
3030
31- public useText ( ) {
31+ public useText ( newText ?: string ) {
3232 this . svc = undefined ;
33- this . reloadFromFile ( ) ;
33+ this . setText ( newText ) ;
3434 }
3535
3636 public edit ( start : number , end : number , newText : string ) {
@@ -198,7 +198,8 @@ namespace ts.server {
198198
199199 public close ( ) {
200200 this . isOpen = false ;
201- this . textStorage . useText ( ) ;
201+ this . textStorage . useText ( this . hasMixedContent ? "" : undefined ) ;
202+ this . markContainingProjectsAsDirty ( ) ;
202203 }
203204
204205 public getSnapshot ( ) {
You can’t perform that action at this time.
0 commit comments