mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
js.debugger.fix.jspm.source.maps
This commit is contained in:
+5
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user