Skip to content

Commit

Permalink
Merge pull request #110 from vlebedeff/master
Browse files Browse the repository at this point in the history
Fix shortest path import variable type mismatch
  • Loading branch information
Quramy committed Jan 1, 2017
2 parents 4af7488 + dc749b6 commit 473aa27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/tsuquyomi/es6import.vim
Expand Up @@ -206,8 +206,8 @@ function! s:findExportingFileForModule(module, current_module_file, module_direc
endif
let l:raw_result = split(l:grep_result, ' ')[2]
let l:raw_result = split(l:raw_result, ':')[0]
let l:raw_result = split(l:raw_result, '/')
let l:extracted_file_name = l:raw_result[len(l:raw_result) -1 ]
let l:raw_result_parts = split(l:raw_result, '/')
let l:extracted_file_name = l:raw_result_parts[len(l:raw_result_parts) -1 ]
let l:extracted_file_name = substitute(l:extracted_file_name, '\.d\.ts$', '', '')
let l:extracted_file_name = substitute(l:extracted_file_name, '\.ts$', '', '')
return l:extracted_file_name
Expand Down

0 comments on commit 473aa27

Please sign in to comment.