aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-09-26 18:36:06 +0000
committerDmitry Sharshakov2021-09-26 18:36:06 +0000
commitd943a51e3e8e2cd77cc336c30eb954378e81fe31 (patch)
tree6a6cc9d6bc58669045806bf04fbe77b18aa58527 /languages.toml
parent0e51e5fbaf6eeffa25b8660b96f2486174671492 (diff)
editor: add Node.js debugger
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml12
1 files changed, 12 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index eb49a70c..a5640c21 100644
--- a/languages.toml
+++ b/languages.toml
@@ -188,6 +188,18 @@ comment-token = "//"
indent = { tab-width = 2, unit = " " }
+[language.debugger]
+name = "node-debug2"
+transport = "stdio"
+# args consisting of cmd (node) and path to adapter should be added to user's configuration
+quirks = { absolute-paths = true }
+
+[[language.debugger.templates]]
+name = "source"
+request = "launch"
+completion = [ { name = "main", completion = "filename", default = "index.js" } ]
+args = { program = "{0}" }
+
[[language]]
name = "typescript"
scope = "source.ts"