- addImports
void addImports(string[] imports)
Manually adds import paths as string array
- clientInstalledVersion
string clientInstalledVersion()
- clientPath
string clientPath()
Undocumented in source. Be warned that the author may not have intended to support it.
- findAndSelectPort
Future!ushort findAndSelectPort(ushort port)
Searches for an open port to spawn dcd-server in asynchronously starting with port, always increasing by one.
- findDeclaration
Future!DCDDeclaration findDeclaration(const(char)[] code, int pos)
Finds the declaration of the symbol at position pos in the code
- fromRunning
bool fromRunning(bool supportsFullOutput, string socketFile, ushort runningPort)
Undocumented in source. Be warned that the author may not have intended to support it.
- getDocumentation
Future!string getDocumentation(const(char)[] code, int pos)
Finds the documentation of the symbol at position pos in the code
- getRunningPort
ushort getRunningPort()
Returns the used running port. Throws an error if using unix sockets instead
- getSocketFile
string getSocketFile()
Returns the used socket file. Only available on OSX, linux and BSD with DCD >= 0.8.0
Throws an error if not available.
- getSupportsFullOutput
bool getSupportsFullOutput()
Undocumented in source. Be warned that the author may not have intended to support it.
- isActive
bool isActive()
Undocumented in source. Be warned that the author may not have intended to support it.
- isOutdated
bool isOutdated()
- isUsingUnixDomainSockets
bool isUsingUnixDomainSockets()
Undocumented in source. Be warned that the author may not have intended to support it.
- killServer
void killServer()
This will kill the process associated with the dcd-server instance
- listCompletion
Future!DCDCompletions listCompletion(const(char)[] code, int pos)
Queries for code completion at position pos in code
Raw is anything else than identifiers and calltips which might not be implemented by this point.
calltips.symbols and identifiers.definition, identifiers.file, identifiers.location and identifiers.documentation are only available with dcd ~master as of now.
- load
void load()
Undocumented in source. Be warned that the author may not have intended to support it.
- port
ushort port()
Undocumented in source. Be warned that the author may not have intended to support it.
- refreshImports
void refreshImports()
Reloads import paths from the current provider. Call reload there before calling it here.
- reloadBinaries
void reloadBinaries()
Undocumented in source. Be warned that the author may not have intended to support it.
- restartServer
Future!void restartServer(bool quiet)
This will stop the dcd-server safely and restart it again using setup-server asynchronously
- searchSymbol
Future!(DCDSearchResult[]) searchSymbol(string query)
Searches for a symbol across all files using dcd-client --search
- serverPath
string serverPath()
Undocumented in source. Be warned that the author may not have intended to support it.
- serverStatus
auto serverStatus()
This will query the current dcd-server status
- setupServer
void setupServer(string[] additionalImports, bool quietServer)
This will start the dcd-server and load import paths from the current provider
- shutdown
void shutdown(bool dtor)
This stops the dcd-server instance safely and waits for it to exit
- startServer
void startServer(string[] additionalImports, bool quietServer)
This will start the dcd-server
- stopServer
Future!void stopServer()
This stops the dcd-server asynchronously
- stopServerSync
void stopServerSync()
Undocumented in source. Be warned that the author may not have intended to support it.
- updateImports
void updateImports()
Undocumented in source. Be warned that the author may not have intended to support it.
- 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.