SnippetsComponent.addDependencySnippet

Adds snippets which complete conditionally based on dub dependencies being present. This function affects the global configuration of all instances.

class SnippetsComponent
void
addDependencySnippet
(,
PlainSnippet snippet
)

Parameters

requiredDependencies string[]

The dependencies which must be present in order for this snippet to show up.

snippet PlainSnippet

The snippet to suggest when the required dependencies are matched.

Meta