SnippetsComponent

Component for auto completing snippets with context information and formatting these snippets with dfmt.

Members

Functions

addDependencySnippet
void addDependencySnippet(string[] requiredDependencies, PlainSnippet snippet)

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

determineSnippetInfo
SnippetInfo determineSnippetInfo(const(char)[] file, const(char)[] code, int position)
format
Future!string format(const(char)[] snippet, string[] arguments)
Undocumented in source. Be warned that the author may not have intended to support it.
formatSync
string formatSync(const(char)[] snippet, string[] arguments)

Will format the code passed in synchronously using dfmt. Might take a short moment on larger documents.

getSnippets
Future!(Snippet[]) getSnippets(const(char)[] file, const(char)[] code, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
getSnippetsBlocking
Snippet[] getSnippetsBlocking(const(char)[] file, const(char)[] code, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
getSnippetsYield
Snippet[] getSnippetsYield(const(char)[] file, const(char)[] code, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
load
void load()
Undocumented in source. Be warned that the author may not have intended to support it.
resolveSnippet
Future!Snippet resolveSnippet(const(char)[] file, const(char)[] code, int position, Snippet snippet)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin DefaultComponentWrapper
Undocumented in source.

Static variables

dependencySnippets
DependencyBasedSnippetProvider dependencySnippets;
Undocumented in source.
plainSnippets
PlainSnippetProvider plainSnippets;
Undocumented in source.
smartSnippets
SmartSnippetProvider smartSnippets;
Undocumented in source.

Variables

providers
SnippetProvider[] providers;
Undocumented in source.

Mixed In Members

From mixin DefaultComponentWrapper

workspaced
WorkspaceD workspaced;
Undocumented in source.
refInstance
WorkspaceD.Instance refInstance;
Undocumented in source.
_threads
TaskPool _threads;
Undocumented in source.
~this
~this()
Undocumented in source.
gthreads
TaskPool gthreads()
Undocumented in source. Be warned that the author may not have intended to support it.
threads
TaskPool threads(int minSize, int maxSize)
Undocumented in source. Be warned that the author may not have intended to support it.
instance
WorkspaceD.Instance instance()
Undocumented in source. Be warned that the author may not have intended to support it.
instance
WorkspaceD.Instance instance(WorkspaceD.Instance instance)
Undocumented in source. Be warned that the author may not have intended to support it.
importPaths
string[] importPaths()
Undocumented in source. Be warned that the author may not have intended to support it.
stringImportPaths
string[] stringImportPaths()
Undocumented in source. Be warned that the author may not have intended to support it.
importFiles
string[] importFiles()
Undocumented in source. Be warned that the author may not have intended to support it.
importPathProvider
ImportPathProvider importPathProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
stringImportPathProvider
ImportPathProvider stringImportPathProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
importFilesProvider
ImportPathProvider importFilesProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
config
Configuration config()
Undocumented in source. Be warned that the author may not have intended to support it.
has
bool has()
Undocumented in source. Be warned that the author may not have intended to support it.
get
T get()
Undocumented in source. Be warned that the author may not have intended to support it.
cwd
string cwd()
Undocumented in source. Be warned that the author may not have intended to support it.
shutdown
void shutdown(bool dtor)
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(WorkspaceD workspaced, WorkspaceD.Instance instance)
Undocumented in source. Be warned that the author may not have intended to support it.
run
Future!JSONValue run(string method, JSONValue[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
runMethod
Future!JSONValue runMethod(JSONValue[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
runOverload
Future!JSONValue runOverload(JSONValue[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
generateOverloadCall
string generateOverloadCall()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From ComponentWrapper

bind
void bind(WorkspaceD workspaced, WorkspaceD.Instance instance)
Undocumented in source.
run
Future!JSONValue run(string method, JSONValue[] args)
Undocumented in source.
shutdown
void shutdown(bool dtor)
Undocumented in source.

Meta