js.debugger.fix.jspm.source.maps

This commit is contained in:
Vladimir Krivosheev
2016-03-25 11:59:26 +01:00
parent 6f49be7fcc
commit a32ee1fe56
2 changed files with 6 additions and 0 deletions
@@ -16,6 +16,7 @@
package org.jetbrains.debugger.sourcemap
import com.google.gson.stream.JsonToken
import com.intellij.openapi.util.registry.Registry
import com.intellij.openapi.util.text.StringUtil
import com.intellij.openapi.util.text.StringUtilRt
import com.intellij.util.PathUtil
@@ -144,6 +145,10 @@ private fun parseMap(reader: JsonReaderEx,
return null
}
if (Registry.`is`("js.debugger.fix.jspm.source.maps", false) && encodedMappings!!.startsWith(";") && file != null && file.endsWith(".ts!transpiled")) {
encodedMappings = encodedMappings.substring(1)
}
if (version != 3) {
throw IOException("Unsupported sourcemap version: $version")
}
@@ -556,6 +556,7 @@ nodejs.debugger.use.jb.support=true
js.debugger.name.mappings.by.source.code=false
js.debugger.v8.log=
js.debugger.wip.log=
js.debugger.fix.jspm.source.maps=false
js.index.node.submodules=false