custom-definition-provider READMEThis is a custom Definition provider. It provides Go To Definition suggestions by running a user-defined command. This is useful if you want to write your own script to find definitions, but don't want to author an extension! FeaturesFirst, configure the extension in settings:
This is the path to a binary which runs when you invoke the Go To Definition command.
A list of file patters for which your binary supports. This extension will not try to provide Go To Definition suggestions for other files types. Search Example ScriptThis is an example bash script which searches for any match of the identifier. If there are fewer than 10 matches, it prints them. These are forwarded by this extension as Go To Definition suggestions. If there are 10 or more matches, it prints nothing - providing no suggestions.
Search Script InterfaceParameters
Remaining args: A list of workspace root folders. Note that the identifier being searched is deduced by the cursor position and line text, using word boundaries. OutputThe script should output one line per suggestion, in the following format: /full/path/to/file.txt:123:22:any text here is ignored DebuggingIf it's not working as expected, this extension logs some information to an output panel. Known IssuesIt's rudimentary. You need to provide the logic in your script. Release Notes1.0.0Initial release. |