added an option to enable usage of tags

This commit is contained in:
Alexey Balchunas 2015-09-05 23:08:29 +07:00
parent a1027767d4
commit 30218447f8

View File

@ -76,11 +76,13 @@ function! s:findFolderFromStackTrace(src,nameFromStackTrace)
" Remove class name.
let l:package = strridx(l:canonicalClassName, ".") >= 0 ? strpart(l:canonicalClassName, 0, strridx(l:canonicalClassName, ".")) : ""
if exists('g:vebugger_use_tags') && g:vebugger_use_tags
" Now first try to find a tag for the class from the required package.
let l:classTag = s:getTagContainingString(l:simpleClassName, l:package)
if (has_key(l:classTag, "filename"))
return fnamemodify(l:classTag.filename, ":h")
endif
endif
" If no such tag was found, try to find it using the src path.
let l:path=a:src