workspaced.com.dub
-
Declaration
voidstartup(stringdir, boolregisterImportProvider= true, boolregisterStringImportProvider= true, boolregisterImportFilesProvider= false);Load function for dub. Call with
{"cmd": "load", "components": ["dub"]}This will start dub and load all import paths. All dub methods are used with"cmd": "dub"Note: This will block any incoming requests while loading.
-
Declaration
voidstop();Stops dub when called.
-
Declaration
voidupdate(AsyncCallbackcallback);Reloads the dub.json or dub.sdl file from the cwd
Return Value
falseif there are no import paths availableCall With:
{"subcmd": "update"} -
Declaration
voidupgrade();Calls
dubupgradeCall With:
{"subcmd": "upgrade"} -
Declaration
@property autodependencies();Lists all
dependencies. This will go through alldependenciesand contain thedependenciesofdependencies. You need to create a tree structure from this yourself.Return Value
[{dependencies: [string], ver: string, name: string}]Call With:
{"subcmd": "list:dep"} -
Declaration
@property autorootDependencies();Lists dependencies of the root package. This can be used as a base to create a tree structure.
Return Value
[string]Call With:
{"subcmd": "list:rootdep"} -
Declaration
@property string[]imports();Lists all import paths
Call With:
{"subcmd": "list:import"} -
Declaration
@property string[]stringImports();Lists all string import paths
Call With:
{"subcmd": "list:string-import"} -
Declaration
@property string[]fileImports();Lists all import paths to files
Call With:
{"subcmd": "list:file-import"} -
Declaration
@property string[]configurations();Lists all
configurationsdefined in the package descriptionCall With:
{"subcmd": "list:configurations"} -
Declaration
@property string[]buildTypes();Lists all build types defined in the package description AND the predefined ones from dub ("plain", "debug", "release", "release-debug", "release-nobounds", "unittest", "docs", "ddox", "profile", "profile-gc", "cov", "unittest-cov")
Call With:
{"subcmd": "list:build-types"} -
Declaration
@property stringconfiguration();Gets the current selected
configurationCall With:
{"subcmd": "get:configuration"} -
Declaration
boolsetConfiguration(stringconfiguration);Selects a new
configurationand updates the import paths accordinglyReturn Value
falseif there are no import paths in the newconfigurationCall With:
{"subcmd": "set:configuration"} -
Declaration
@property string[]archTypes();List all possible arch types for current set compiler
Call With:
{"subcmd": "list:arch-types"} -
Declaration
@property stringarchType();Returns the current selected arch type
Call With:
{"subcmd": "get:arch-type"} -
Declaration
boolsetArchType(JSONValuerequest);Selects a new arch type and updates the import paths accordingly
Return Value
falseif there are no import paths in the new arch typeCall With:
{"subcmd": "set:arch-type"} -
Declaration
@property stringbuildType();Returns the current selected build type
Call With:
{"subcmd": "get:build-type"} -
Declaration
boolsetBuildType(JSONValuerequest);Selects a new build type and updates the import paths accordingly
Return Value
falseif there are no import paths in the new build typeCall With:
{"subcmd": "set:build-type"} -
Declaration
@property stringcompiler();Returns the current selected
compilerCall With:
{"subcmd": "get:compiler"} -
Declaration
boolsetCompiler(stringcompiler);Selects a new
compilerfor buildingReturn Value
falseif thecompilerdoes not existCall With:
{"subcmd": "set:compiler"} -
Declaration
@property stringname();Returns the project
nameCall With:
{"subcmd": "get:name"} -
Declaration
@property autopath();Returns the project
pathCall With:
{"subcmd": "get:path"} -
Declaration
voidbuild(AsyncCallbackcb);Asynchroniously builds the project WITHOUT OUTPUT. This is intended for linting code and showing
builderrors quickly inside the IDE.Return Value
[{line: int, column: int, type: ErrorType, text: string}]where type is an integerCall With:
{"subcmd": "build"} -
Declaration
enumErrorType: ubyte;-
Declaration
Error -
Declaration
Warning -
Declaration
Deprecation
-
-
Declaration
structBuildIssue;