DCDComponent

Undocumented in source.

Members

Enums

WarningId
enum WarningId
Undocumented in source.

Functions

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

findLocalUse
Future!DCDLocalUse findLocalUse(const(char)[] code, int pos)

Finds declaration and usage of the token at position pos within the current document.

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
deprecated 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.
removeImports
void removeImports(string[] imports)

Manually removes import paths using a string array. Note that trying to remove import paths from the import paths provider will result in them being readded as soon as refreshImports is called again.

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

serverInstalledVersion
string serverInstalledVersion()
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, bool selectPort)

This will start the dcd-server. If DCD does not support IPC sockets on this platform, will use the TCP port specified with the port property or init config.

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.

Manifest constants

latestKnownVersion
enum latestKnownVersion;
Undocumented in source.

Mixins

__anonymous
mixin DefaultComponentWrapper
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
inout(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.
projectVersions
string[] projectVersions()

Lists the project defined version identifiers, if provided by any identifier

debugSpecifications
string[] debugSpecifications()

Lists the project defined debug specification identifiers, if provided by any provider

importPathProvider
inout(ImportPathProvider) importPathProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
stringImportPathProvider
inout(ImportPathProvider) stringImportPathProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
importFilesProvider
inout(ImportPathProvider) importFilesProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
projectVersionsProvider
inout(IdentifierListProvider) projectVersionsProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
debugSpecificationsProvider
inout(IdentifierListProvider) debugSpecificationsProvider()
Undocumented in source. Be warned that the author may not have intended to support it.
config
inout(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.

Inherited Members

From ComponentWrapper

bind
void bind(WorkspaceD workspaced, WorkspaceD.Instance instance)
Undocumented in source.
shutdown
void shutdown(bool dtor)
Undocumented in source.

Meta