Skip to content

Commit

Permalink
chore: type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
s1n7ax committed Jul 25, 2024
1 parent 55c90c5 commit 55f2395
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lua/java-dap/api/runner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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')

Expand Down
4 changes: 0 additions & 4 deletions lua/java-dap/api/setup.lua
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -13,7 +11,6 @@ local Setup = class()
---@param client any
function Setup:_init(client)
self.client = client

self.java_debug = JavaDebug(client)
end

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lua/java-dap/data/adapters.lua
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 55f2395

Please sign in to comment.