-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript is not supported for nodejs #47
Comments
I'm not sure if this is the correct way, but I got mine to work with this. Basically it loads defaults for -- From the instruction on this repo
local dap_install = require("dap-install")
dap_install.config("jsnode", {})
-- From github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#Javascript
local dap = require("dap")
dap.configurations.typescript = {
{
name = 'Launch',
type = 'node2',
request = 'launch',
program = '${file}',
cwd = vim.fn.getcwd(),
sourceMaps = true,
protocol = 'inspector',
console = 'integratedTerminal',
},
{
-- For this to work you need to make sure the node process is started with the `--inspect` flag.
name = 'Attach to process',
type = 'node2',
request = 'attach',
processId = require'dap.utils'.pick_process,
},
} I think the fix applied to #38 (340cb26) can also be done for this issue |
Not having much luck with this, |
Was able to get typescript working after running local dap_install = require('dap-install')
dap_install.config('jsnode', {})
local dap = require('dap')
dap.configurations.typescript = {
{
name = 'Run',
type = 'node2',
request = 'launch',
program = '${file}',
cwd = vim.fn.getcwd(),
sourceMaps = true,
protocol = 'inspector',
console = 'integratedTerminal',
outFiles = {"${workspaceFolder}/build/**/*.js"},
},
{
name = 'Attach to process',
type = 'node2',
request = 'attach',
processId = require'dap.utils'.pick_process,
},
} |
I'm new to neovim. It seems that typescript is not supported for jsnode?
The text was updated successfully, but these errors were encountered: