From 55f239532f7a3789d21ea68d1e795abc77484974 Mon Sep 17 00:00:00 2001 From: s1n7ax Date: Fri, 26 Jul 2024 00:09:12 +0530 Subject: [PATCH] chore: type changes --- lua/java-dap/api/runner.lua | 10 +++++----- lua/java-dap/api/setup.lua | 4 ---- lua/java-dap/data/adapters.lua | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/lua/java-dap/api/runner.lua b/lua/java-dap/api/runner.lua index def17d7..2c8a250 100644 --- a/lua/java-dap/api/runner.lua +++ b/lua/java-dap/api/runner.lua @@ -17,8 +17,8 @@ function Runner:new() end ---Dap run with given config ----@param config java-core.DapLauncherConfig ----@param report java_test.JUnitTestReport +---@param config java-dap.DapLauncherConfig +---@param report java-test.JUnitTestReport function Runner:run_by_config(config, report) log.debug('running dap with config: ', config) @@ -35,9 +35,9 @@ end ---Runs before the dap run ---@private ----@param conf java-core.DapLauncherConfig ----@param report java_test.JUnitTestReport ----@return java-core.DapLauncherConfig +---@param conf java-dap.DapLauncherConfig +---@param report java-test.JUnitTestReport +---@return java-dap.DapLauncherConfig function Runner:before(conf, report) log.debug('running "before" callback') diff --git a/lua/java-dap/api/setup.lua b/lua/java-dap/api/setup.lua index f72bfd1..5e4c0a9 100644 --- a/lua/java-dap/api/setup.lua +++ b/lua/java-dap/api/setup.lua @@ -1,8 +1,6 @@ local adapters = require('java-dap.data.adapters') - local log = require('java-core.utils.log') local class = require('java-core.utils.class') - local JavaDebug = require('java-core.ls.clients.java-debug-client') ---@class java-dap.Setup @@ -13,7 +11,6 @@ local Setup = class() ---@param client any function Setup:_init(client) self.client = client - self.java_debug = JavaDebug(client) end @@ -42,7 +39,6 @@ end ---Returns the launch config filled with required data if missing in the passed --config ----@private ---@param config java-dap.DapLauncherConfigOverridable ---@return java-dap.DapLauncherConfigOverridable function Setup:enrich_config(config) diff --git a/lua/java-dap/data/adapters.lua b/lua/java-dap/data/adapters.lua index 81b7966..d7bb4f0 100644 --- a/lua/java-dap/data/adapters.lua +++ b/lua/java-dap/data/adapters.lua @@ -1,7 +1,7 @@ local M = {} ---Returns the dap config record ----@param main JavaDebugResolveMainClassRecord +---@param main java-dap.JavaDebugResolveMainClassRecord ---@return java-dap.DapLauncherConfig function M.main_to_dap_launch_config(main) local project_name = main.projectName