workspaced.api
-
Declaration
aliasAsyncCallback= void delegate(Throwable, JSONValue); -
Declaration
enum longasync;Will get called asynchronously (Must prepend AsyncCallback as argument)
-
Declaration
enum longload;Will get called for loading components
-
Declaration
enum longunload;Will get called for unloading components
-
Declaration
enum longany;Will call this function in
anycase (cmd: component) -
Declaration
enum longdisabledFunc;Will never call this function
-
Declaration
structcomponent;Component call
-
Declaration
stringname;Name of the component
-
-
Declaration
structArguments;Will get called when some argument matches
-
Declaration
Argument[]arguments;Arguments to match
-
-
Declaration
structCodeReplacement;Describes what to insert/replace/delete to do something
-
Declaration
size_t[2]range;Range what to replace. If both indices are the same its inserting.
-
Declaration
stringcontent;Content to replace it with. Empty means remove.
-
Declaration
stringapply(stringcode);Applies this edit to a string.
-
-
Declaration
structFileChanges;Code replacements mapped to a file
-
Declaration
stringfile;File path to change.
-
Declaration
CodeReplacement[]replacements;Replacements to apply.
-
-
Declaration
BroadcastCallbackbroadcastCallback;Broadcast callback which might get called by commands. For example when a component is outdated. Will be called in caller thread of function / while function executes.
-
Declaration
BroadcastCallbackcrossThreadBroadcastCallback;Broadcast callback which might get called by commands. This callback will get called by all threads.
-
Declaration
JSONValuesyncBlocking(alias fn, alias sleepDur = 1.msecs, Args...)(Argsargs);Calls an asynchronous function and blocks until it returns using Thread.sleep
-
Declaration
JSONValuesyncYield(alias fn, Args...)(Argsargs);Calls an asynchronous function and blocks until it returns using Fiber.yield