Skip to content

Commit 96b3767

Browse files
committed
chore: code type improvements
1 parent 0fc8f59 commit 96b3767

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

lua/java-core/ls/clients/java-test-client.lua

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,8 @@ local JdtlsClient = require('java-core.ls.clients.jdtls-client')
2424
---@field children java-core.TestDetailsWithRange[]
2525

2626
---@class java-core.TestRange
27-
---@field start CursorPoint
28-
---@field end CursorPoint
29-
30-
---@class CursorPoint
31-
---@field line integer
32-
---@field character integer
27+
---@field start nvim.CursorPoint
28+
---@field end nvim.CursorPoint
3329

3430
---@class java-core.TestClient: java-core.JdtlsClient
3531
local TestClient = class(JdtlsClient)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---@alias jdtls.RequestMethod
2+
---| 'workspace/executeCommand'
3+
---| 'java/inferSelection'

lua/java-core/types/nvim-types.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---@class nvim.Range
2+
---@field end nvim.CursorPoint
3+
---@field start nvim.CursorPoint
4+
5+
---@class nvim.CursorPoint
6+
---@field line integer
7+
---@field character integer

0 commit comments

Comments
 (0)