Skip to content

Commit

Permalink
fix(FrigoEU#113): add currentModule to filters
Browse files Browse the repository at this point in the history
  • Loading branch information
srghma2 committed Oct 19, 2017
1 parent 48fc851 commit 9028323
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions ftplugin/purescript_pscide.vim
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,21 @@ endfunction

" Add type annotation
function! PSCIDEaddTypeAnnotation(ident)
call s:getType(
\ a:ident,
\ v:true,
\ { resp -> s:PSCIDEaddTypeAnnotationCallback(a:ident, resp) }
let currentModule = purescript#ide#utils#currentModule()
let filters = [purescript#ide#utils#modulesFilter([currentModule])]
call purescript#ide#utils#debug('PSCIDE addTypeAnnotation currentModule: ' . currentModule, 3)

call purescript#ide#call(
\ { 'command': 'type'
\ , 'params':
\ { 'search': a:ident
\ , 'filters': filters
\ , 'currentModule': currentModule
\ }
\ },
\ 'Failed to add type info for: ' . a:ident,
\ 0,
\ {resp -> s:PSCIDEaddTypeAnnotationCallback(a:ident, resp)}
\ )
endfunction

Expand Down

0 comments on commit 9028323

Please sign in to comment.