File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ export class TSService {
152
152
this . currTarget . filePath === normalizeFileName ( fileName ) &&
153
153
isExtra ( fileName , extraFileExtensions )
154
154
) {
155
+ // Parse the target file as TSX.
155
156
return ( this . currTarget . sourceFile ??= ts . createSourceFile (
156
157
this . currTarget . filePath ,
157
158
this . currTarget . code ,
@@ -170,6 +171,7 @@ export class TSService {
170
171
} ;
171
172
/* eslint-enable @typescript-eslint/unbound-method -- ignore */
172
173
host . getSourceFile = ( fileName , languageVersionOrOptions , ...args ) => {
174
+ // Always call the original function, because it calls the file watcher.
173
175
const originalSourceFile = original . getSourceFile . call (
174
176
host ,
175
177
fileName ,
@@ -187,6 +189,7 @@ export class TSService {
187
189
languageVersionOrOptions ,
188
190
...args
189
191
) => {
192
+ // Always call the original function, because it calls the file watcher.
190
193
const originalSourceFile = original . getSourceFileByPath . call (
191
194
host ,
192
195
fileName ,
You can’t perform that action at this time.
0 commit comments