Skip to content

Commit 4ad9d51

Browse files
authored
Merge pull request #3695 from bhcleek/lsp/actions
lsp: fix extract code action
2 parents ec7a59e + 554ebac commit 4ad9d51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/go/lsp.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ function! go#lsp#FillStruct() abort
16631663
let l:lsp = s:lspfactory.get()
16641664

16651665
let l:state = s:newHandlerState('')
1666-
let l:handler = go#promise#New(function('s:handleCodeAction', ['refactor.rewrite', 'apply_fix', 'fillstruct'], l:state), 10000, '')
1666+
let l:handler = go#promise#New(function('s:handleCodeAction', ['refactor.rewrite.fillStruct', 'apply_fix', 'fillstruct'], l:state), 10000, '')
16671667
let l:state.handleResult = l:handler.wrapper
16681668
let l:state.error = l:handler.wrapper
16691669
let l:state.handleError = function('s:handleCodeActionError', [l:fname], l:state)
@@ -1689,7 +1689,7 @@ function! go#lsp#Extract(line1, line2) abort
16891689
let l:lsp = s:lspfactory.get()
16901690

16911691
let l:state = s:newHandlerState('')
1692-
let l:handler = go#promise#New(function('s:handleCodeAction', ['refactor.extract', 'apply_fix', ''], l:state), 10000, '')
1692+
let l:handler = go#promise#New(function('s:handleCodeAction', ['refactor.extract.function', 'apply_fix', 'extract_function'], l:state), 10000, '')
16931693
let l:state.handleResult = l:handler.wrapper
16941694
let l:state.error = l:handler.wrapper
16951695
let l:state.handleError = function('s:handleCodeActionError', [l:fname], l:state)

0 commit comments

Comments
 (0)