File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/providers/FileSystemProvider Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -860,9 +860,9 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
860
860
} )
861
861
. catch ( ( ) => compileErrorMsg ( conf ) )
862
862
) ;
863
- if ( update && ! filesToUpdate . includes ( compileList [ 0 ] ) ) {
864
- // This file was just written, the write may have changed its contents, and the compilation
865
- // did not change the contents further . Therefore, we must force VS Code to update it.
863
+ if ( update || ( file && filesToUpdate . includes ( file . fileName ) ) ) {
864
+ // This file was just written and the write may have changed its contents or the
865
+ // compilation changed its contents. Therefore, we must force VS Code to update it.
866
866
this . _notifyOfFileChange ( uri ) ;
867
867
}
868
868
// Fire file changed events for all files changed by compilation
You can’t perform that action at this time.
0 commit comments