added an option to enable usage of tags
This commit is contained in:
parent
a1027767d4
commit
30218447f8
@ -76,11 +76,13 @@ function! s:findFolderFromStackTrace(src,nameFromStackTrace)
|
|||||||
" Remove class name.
|
" Remove class name.
|
||||||
let l:package = strridx(l:canonicalClassName, ".") >= 0 ? strpart(l:canonicalClassName, 0, strridx(l:canonicalClassName, ".")) : ""
|
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.
|
" Now first try to find a tag for the class from the required package.
|
||||||
let l:classTag = s:getTagContainingString(l:simpleClassName, l:package)
|
let l:classTag = s:getTagContainingString(l:simpleClassName, l:package)
|
||||||
if (has_key(l:classTag, "filename"))
|
if (has_key(l:classTag, "filename"))
|
||||||
return fnamemodify(l:classTag.filename, ":h")
|
return fnamemodify(l:classTag.filename, ":h")
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
" If no such tag was found, try to find it using the src path.
|
" If no such tag was found, try to find it using the src path.
|
||||||
let l:path=a:src
|
let l:path=a:src
|
||||||
|
Loading…
x
Reference in New Issue
Block a user