use absolute path as key to store files, correctly handle scenarios w…#5275
use absolute path as key to store files, correctly handle scenarios w…#5275
Conversation
…hen file names differ only in casing
There was a problem hiding this comment.
--useCaseSensitiveLookups or
--caseSensitiveFileNames
|
👍 |
|
calling @RyanCavanaugh and @DanielRosenwasser: any preferences/opinions regarding the name and description of the command line option? |
use absolute path as key to store files, correctly handle scenarios w…
|
There is some weird behavior coming about (I believe) due to these changes. In particular, Is it expected that language service implementations now need to join on the |
|
@jbrantly can you share more details. that change was not intentional. |
|
Sure. I caught this running the test suite of ts-loader on the nightly build. I have a test where I use the custom module resolution stuff ( As a secondary issue, after putting in a "fix" so that Basically this: file.version++;
file.text = contents;
console.log('before');
console.log(contents);
var output = langService.getEmitOutput(filePath);
console.log('after');
console.log(output.outputFiles[0].text);results in: If you want to duplicate yourself you can: It will build fine initially, but if you were to throw a few If you change to typescript@1.8.0-dev.20151027 things work as they should. I can open new issues for these if you'd like. |
|
I think I know what is going on. Will look into the solution tonight |
|
the change was 'sort of' intentional and you've already pointed to the line with motivating comment: // convert an absolute import path to path that is relative to current directory
// this was host still can locate it but files names in user output will be shorter (and thus look nicer).this however means that implementations of |
|
#5462 partially reverts this PR |
use absolute path as key to store files, correctly handle scenarios w…
…hen file names differ only in casing. Fixes #5102, #5274, #3626, #4719, #2011