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 @@ -1265,7 +1265,6 @@ namespace ts {
1265
1265
let activeSession : import ( "inspector" ) . Session | "stopping" | undefined ;
1266
1266
let profilePath = "./profile.cpuprofile" ;
1267
1267
1268
- const realpathSync = _fs . realpathSync . native ?? _fs . realpathSync ;
1269
1268
1270
1269
const Buffer : {
1271
1270
new ( input : string , encoding ?: string ) : any ;
@@ -1278,6 +1277,8 @@ namespace ts {
1278
1277
1279
1278
const platform : string = _os . platform ( ) ;
1280
1279
const useCaseSensitiveFileNames = isFileSystemCaseSensitive ( ) ;
1280
+ const realpathSync = useCaseSensitiveFileNames ? _fs . realpathSync : ( _fs . realpathSync . native ?? _fs . realpathSync ) ;
1281
+
1281
1282
const fsSupportsRecursiveFsWatch = isNode4OrLater && ( process . platform === "win32" || process . platform === "darwin" ) ;
1282
1283
const getCurrentDirectory = memoize ( ( ) => process . cwd ( ) ) ;
1283
1284
const { watchFile, watchDirectory } = createSystemWatchFunctions ( {
You can’t perform that action at this time.
0 commit comments