adapters: csharp, java, kotlin
This commit is contained in:
3 files changed
+75
-3
No files matched your search
@@ -1 +1,25 @@
|
||||
return {}
|
||||
local loader = require("tiny-debugger.adapters.init")
|
||||
|
||||
local M = {}
|
||||
|
||||
function M.register(dap)
|
||||
local kotlin_debug = loader.find_executable({ "kotlin-debug-adapter" })
|
||||
if not kotlin_debug then return end
|
||||
|
||||
loader.register(dap, "kotlin", {
|
||||
type = "executable",
|
||||
command = kotlin_debug,
|
||||
}, {
|
||||
{
|
||||
type = "kotlin",
|
||||
request = "launch",
|
||||
name = "Launch main",
|
||||
mainClass = function()
|
||||
return vim.fn.input("Main class: ")
|
||||
end,
|
||||
projectRoot = "${workspaceFolder}",
|
||||
},
|
||||
}, { "kotlin" })
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in new issue
Block a user