File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -2331,7 +2331,7 @@ namespace ts {
23312331 export function getSourceFilePathInNewDir ( sourceFile : SourceFile , host : EmitHost , newDirPath : string ) {
23322332 let sourceFilePath = getNormalizedAbsolutePath ( sourceFile . fileName , host . getCurrentDirectory ( ) ) ;
23332333 const commonSourceDirectory = host . getCommonSourceDirectory ( ) ;
2334- const isSourceFileInCommonSourceDirectory = sourceFilePath . toLowerCase ( ) . indexOf ( commonSourceDirectory . toLowerCase ( ) ) === 0 ;
2334+ const isSourceFileInCommonSourceDirectory = host . getCanonicalFileName ( sourceFilePath ) . indexOf ( host . getCanonicalFileName ( commonSourceDirectory ) ) === 0 ;
23352335 sourceFilePath = isSourceFileInCommonSourceDirectory ? sourceFilePath . substring ( commonSourceDirectory . length ) : sourceFilePath ;
23362336 return combinePaths ( newDirPath , sourceFilePath ) ;
23372337 }
You can’t perform that action at this time.
0 commit comments