I am writing ddc-ctags and want to add a feature to specify a path to ctags executable. There are several kinds of “Ctags”'s, but the latest Universal Ctags is the one I want to use in this plugin.
So I need to test the executable the user set in sourceParams, but it is annoying that it runs tests every time gatherCandidates() is called.
If onInit() can have sourceParams, it needs to test only once.
Problems summary
onInit()
does not havesourceParams
in arguments.Expected
onInit()
can havesourceParams
in arguments.Detail
I am writing ddc-ctags and want to add a feature to specify a path to
ctags
executable. There are several kinds of “Ctags”'s, but the latest Universal Ctags is the one I want to use in this plugin.So I need to test the executable the user set in
sourceParams
, but it is annoying that it runs tests every timegatherCandidates()
is called.If
onInit()
can havesourceParams
, it needs to test only once.