File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1186,7 +1186,6 @@ namespace ts {
1186
1186
let activeSession : import ( "inspector" ) . Session | "stopping" | undefined ;
1187
1187
let profilePath = "./profile.cpuprofile" ;
1188
1188
1189
- const realpathSync = _fs . realpathSync . native ?? _fs . realpathSync ;
1190
1189
1191
1190
const Buffer : {
1192
1191
new ( input : string , encoding ?: string ) : any ;
@@ -1199,6 +1198,8 @@ namespace ts {
1199
1198
1200
1199
const platform : string = _os . platform ( ) ;
1201
1200
const useCaseSensitiveFileNames = isFileSystemCaseSensitive ( ) ;
1201
+ const realpathSync = useCaseSensitiveFileNames ? _fs . realpathSync : ( _fs . realpathSync . native ?? _fs . realpathSync ) ;
1202
+
1202
1203
const fsSupportsRecursiveFsWatch = isNode4OrLater && ( process . platform === "win32" || process . platform === "darwin" ) ;
1203
1204
const getCurrentDirectory = memoize ( ( ) => process . cwd ( ) ) ;
1204
1205
const { watchFile, watchDirectory } = createSystemWatchFunctions ( {
You can’t perform that action at this time.
0 commit comments