IntelliJ IDEA supports name mappings and currently typescript compiler produces incorrect name mappings (https://youtrack.jetbrains.com/issue/WEB-17717).
Typescript code:
class Foo {
public b = 3;
bar(param1){
var a = 5;
return a;
}
}
new Foo().bar(1);
Debug output: https://gist.github.com/develar/598a984f27bb92526094
Project to get debug output: https://dl.dropboxusercontent.com/u/43511007/s/ts-name-mappings-bug.zip
IDEA sourcemap visualiser: 