diff options
Diffstat (limited to 'lua/mason-registry/mockdebug/init.lua')
| -rw-r--r-- | lua/mason-registry/mockdebug/init.lua | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/mason-registry/mockdebug/init.lua b/lua/mason-registry/mockdebug/init.lua new file mode 100644 index 00000000..9898b2df --- /dev/null +++ b/lua/mason-registry/mockdebug/init.lua @@ -0,0 +1,23 @@ +local Pkg = require "mason.core.package" +local github = require "mason.core.managers.github" +local git = require "mason.core.managers.git" +local _ = require "mason.core.functional" +local Optional = require "mason.core.optional" + +return Pkg.new { + name = "mockdebug", + desc = [[Mock Debug simulates a debug adapter. It supports step, continue, breakpoints, exceptions, and variable access but it is not connected to any real debugger.]], + homepage = "https://github.com/microsoft/vscode-mock-debug", + languages = {}, + categories = { Pkg.Cat.DAP }, + ---@async + ---@param ctx InstallContext + install = function(ctx) + local source = github.tag { repo = "microsoft/vscode-mock-debug" } + source.with_receipt() + git.clone { "https://github.com/microsoft/vscode-mock-debug", version = Optional.of(source.tag) } + ctx.spawn.npm { "install" } + ctx.spawn.npm { "run", "compile" } + ctx.spawn.npm { "install", "--production" } + end, +} |
