|
89 | 89 |
|
90 | 90 | ---Returns more information about the object the cursor is on |
91 | 91 | ---@param command jdtls.CodeActionCommand |
92 | | ----@param context lsp.CodeActionContext |
| 92 | +---@param params lsp.CodeActionParams |
93 | 93 | ---@param buffer? number |
94 | 94 | ---@return jdtls.SelectionInfo[] |
95 | | -function JdtlsClient:java_infer_selection(command, context, buffer) |
| 95 | +function JdtlsClient:java_infer_selection(command, params, buffer) |
96 | 96 | return self:request('java/inferSelection', { |
97 | 97 | command = command, |
98 | | - context = context, |
| 98 | + context = params, |
99 | 99 | }, buffer) |
100 | 100 | end |
101 | 101 |
|
102 | 102 | ---Returns refactor details |
103 | 103 | ---@param command jdtls.CodeActionCommand |
104 | | ----@param context lsp.CodeActionContext |
105 | | ----@param options lsp.FormattingOptions |
106 | | ----@param command_arguments jdtls.SelectionInfo[]; |
| 104 | +---@param action_params lsp.CodeActionParams |
| 105 | +---@param formatting_options lsp.FormattingOptions |
| 106 | +---@param selection_info jdtls.SelectionInfo[]; |
107 | 107 | ---@param buffer? number |
108 | 108 | ---@return jdtls.RefactorWorkspaceEdit |
109 | 109 | function JdtlsClient:java_get_refactor_edit( |
110 | 110 | command, |
111 | | - context, |
112 | | - options, |
113 | | - command_arguments, |
| 111 | + action_params, |
| 112 | + formatting_options, |
| 113 | + selection_info, |
114 | 114 | buffer |
115 | 115 | ) |
116 | 116 | local params = { |
117 | 117 | command = command, |
118 | | - context = context, |
119 | | - options = options, |
120 | | - commandArguments = command_arguments, |
| 118 | + context = action_params, |
| 119 | + options = formatting_options, |
| 120 | + commandArguments = selection_info, |
121 | 121 | } |
122 | 122 |
|
123 | 123 | return self:request('java/getRefactorEdit', params, buffer) |
|
0 commit comments