Skip to content

Commit 401bf76

Browse files
authored
85 feature add types for javaactionorganizeimportschooseimports (#86)
1 parent 5a45ffb commit 401bf76

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Diff for: lua/java-core/api/test.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
local log = require('java-core.utils.log')
22
local data_adapters = require('java-core.adapters')
3+
local notify = require('java-core.utils.notify')
34

45
local DebugClient = require('java-core.ls.clients.java-debug-client')
56
local TestClient = require('java-core.ls.clients.java-test-client')
@@ -55,7 +56,7 @@ function M:run_class_by_buffer(buffer, report, config)
5556
local tests = self:get_test_class_by_buffer(buffer)
5657

5758
if #tests < 1 then
58-
vim.notify('No tests found in the current buffer')
59+
notify.warn('No tests found in the current buffer')
5960
return
6061
end
6162

Diff for: lua/java-core/ls/clients/jdtls-client.lua

+8
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,14 @@ end
133133
---@field errorMessage? string
134134
---@field destinations jdtls.InstanceMethodMoveDestination[]|jdtls.ResourceMoveDestination[]
135135

136+
---@class jdtls.ImportCandidate
137+
---@field fullyQualifiedName string
138+
---@field id string
139+
140+
---@class jdtls.ImportSelection
141+
---@field candidates jdtls.ImportCandidate[]
142+
---@field range Range
143+
136144
---@param params jdtls.MoveParams
137145
---@return jdtls.MoveDestinationsResponse
138146
function JdtlsClient:get_move_destination(params)

0 commit comments

Comments
 (0)