Skip to content

Commit

Permalink
Merge pull request #48 from coot/type-filter
Browse files Browse the repository at this point in the history
s:getType - include currentModule when filtering by module
  • Loading branch information
Coot authored May 23, 2017
2 parents b97523d + 5363696 commit 29fe53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/purescript_pscide.vim
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ endfunction

function! s:getType(identifier)
let currentModule = s:ExtractModule()
let importedModules = map(s:ListImports(currentModule), {key, val -> val["module"]})
let importedModules = add(map(s:ListImports(currentModule), {key, val -> val["module"]}), currentModule)
call s:log('PSCIDE s:getType currentModule: ' . currentModule, 3)

let resp = s:callPscIde( {'command': 'type', 'params': {'search': a:identifier , 'filters': [ {'filter': 'modules' , 'params': {'modules': importedModules } }], 'currentModule': currentModule} }, 'Failed to get type info for: ' . a:identifier, 0)
Expand Down

0 comments on commit 29fe53e

Please sign in to comment.