From b8a6632a0f2d263199d5d480ca85477fe0f414ab Mon Sep 17 00:00:00 2001 From: William Boman Date: Mon, 20 Feb 2023 22:19:39 +0100 Subject: feat: configurable registries (#1016) --- lua/mason-registry/mockdebug/init.lua | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 lua/mason-registry/mockdebug/init.lua (limited to 'lua/mason-registry/mockdebug/init.lua') 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, -} -- cgit v1.2.3-70-g09d2