Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/userguide/diffusion_symbols.diviner
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | |||||
You can configure some more options by going to {nav Diffusion > (Select | You can configure some more options by going to {nav Diffusion > (Select | ||||
repository) > Edit Repository > Edit Symbols}, and filling out these fields: | repository) > Edit Repository > Edit Symbols}, and filling out these fields: | ||||
- **Indexed Languages**: Fill in all the languages you've built indexes for. | - **Indexed Languages**: Fill in all the languages you've built indexes for. | ||||
You can leave this blank for "All languages". | You can leave this blank for "All languages". | ||||
- **Uses Symbols From**: If this project depends on other repositories, add | - **Uses Symbols From**: If this project depends on other repositories, add | ||||
the other repositories which symbols should be looked for here. For example, | the other repositories which symbols should be looked for here. For example, | ||||
Phabricator lists "Arcanist" and "libphutil" because it uses classes and | Phabricator lists "Arcanist" because it uses classes and functions defined | ||||
functions from these repositories. | in `arcanist/`. | ||||
== External Symbols == | == External Symbols == | ||||
By @{article@phabcontrib:Adding New Classes}, you can teach Phabricator | By @{article@phabcontrib:Adding New Classes}, you can teach Phabricator | ||||
about symbols from the outside world. | about symbols from the outside world. | ||||
Extend @{class:DiffusionExternalSymbolsSource}; Once loaded, your new | Extend @{class:DiffusionExternalSymbolsSource}; Once loaded, your new | ||||
implementation will be used any time a symbol is queried. | implementation will be used any time a symbol is queried. | ||||
See @{class:DiffusionPhpExternalSymbolsSource} and | See @{class:DiffusionPhpExternalSymbolsSource} and | ||||
@{class:DiffusionPythonExternalSymbolsSource} for example implementations. | @{class:DiffusionPythonExternalSymbolsSource} for example implementations. |