diff options
| author | William Boman <william@redwill.se> | 2023-02-20 22:19:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-20 22:19:39 +0100 |
| commit | b8a6632a0f2d263199d5d480ca85477fe0f414ab (patch) | |
| tree | 57e1ee0f3cef078ec144ecdf1b2fa861acf47755 /lua/mason-registry/mockdebug/init.lua | |
| parent | chore: autogenerate (#1015) (diff) | |
| download | mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.gz mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.bz2 mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.lz mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.xz mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.zst mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.zip | |
feat: configurable registries (#1016)
Diffstat (limited to 'lua/mason-registry/mockdebug/init.lua')
| -rw-r--r-- | lua/mason-registry/mockdebug/init.lua | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/lua/mason-registry/mockdebug/init.lua b/lua/mason-registry/mockdebug/init.lua deleted file mode 100644 index 4b539a72..00000000 --- a/lua/mason-registry/mockdebug/init.lua +++ /dev/null @@ -1,31 +0,0 @@ -local Pkg = require "mason-core.package" -local github = require "mason-core.managers.github" -local git = require "mason-core.managers.git" -local path = require "mason-core.path" -local _ = require "mason-core.functional" -local Optional = require "mason-core.optional" - -return Pkg.new { - name = "mockdebug", - desc = _.dedent [[ - 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" } - ctx:link_bin( - "mock-debug-adapter", - ctx:write_node_exec_wrapper("mock-debug-adapter", path.concat { "out", "debugAdapter.js" }) - ) - end, -} |
