workspaced.api

Undocumented in source.

Members

Aliases

AsyncCallback
alias AsyncCallback = void delegate(Throwable, JSONValue)
BroadcastCallback
alias BroadcastCallback = void function(JSONValue)
Undocumented in source.
ImportPathProvider
alias ImportPathProvider = string[] function()
Undocumented in source.

Functions

arguments
Arguments arguments(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
broadcast
void broadcast(JSONValue value)

Must get called in caller thread

checkVersion
bool checkVersion(string ver, int[3] target)
Undocumented in source. Be warned that the author may not have intended to support it.
getConfigPath
bool getConfigPath(string file, string retPath)
Undocumented in source. Be warned that the author may not have intended to support it.
getVersionAndFixPath
string getVersionAndFixPath(string execPath)
Undocumented in source. Be warned that the author may not have intended to support it.
makeTemporaryTestingWorkspace
TestingWorkspace makeTemporaryTestingWorkspace()
Undocumented in source. Be warned that the author may not have intended to support it.
syncBlocking
JSONValue syncBlocking(Args args)

Calls an asynchronous function and blocks until it returns using Thread.sleep

syncYield
JSONValue syncYield(Args args)

Calls an asynchronous function and blocks until it returns using Fiber.yield

Manifest constants

any
enum any;

Will call this function in any case (cmd: component)

async
enum async;

Will get called asynchronously (Must prepend AsyncCallback as argument)

load
enum load;

Will get called for loading components

unload
enum unload;

Will get called for unloading components

verRegex
enum verRegex;
Undocumented in source.

Structs

Arguments
struct Arguments

Will get called when some argument matches

CodeReplacement
struct CodeReplacement

Describes what to insert/replace/delete to do something

FileChanges
struct FileChanges

Code replacements mapped to a file

TestingWorkspace
struct TestingWorkspace
Undocumented in source.
component
struct component

Component call

Variables

broadcastCallback
BroadcastCallback broadcastCallback;

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.

importFilesProvider
ImportPathProvider importFilesProvider;
Undocumented in source.
importPathProvider
ImportPathProvider importPathProvider;
Undocumented in source.
stringImportPathProvider
ImportPathProvider stringImportPathProvider;
Undocumented in source.

Meta