Skip to content

Commit 44a3abd

Browse files
committed
lsp: fix extract code action
1 parent ec7a59e commit 44a3abd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/go/lsp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)