served.types

Undocumented in source.

Public Imports

served.lsp.protocol
public import served.lsp.protocol;
Undocumented in source.
served.lsp.protoext
public import served.lsp.protoext;
Undocumented in source.
served.lsp.textdocumentmanager
public import served.lsp.textdocumentmanager;
Undocumented in source.
served.lsp.uri
public import served.lsp.uri;
Undocumented in source.
served.utils.events
public import served.utils.events;
Undocumented in source.

Members

Aliases

UserConfiguration
alias UserConfiguration = Configuration
Undocumented in source.
documents
alias documents = lspRouter.documents
Undocumented in source.
rpc
alias rpc = lspRouter.rpc
Undocumented in source.

Classes

LazyWorkspaceD (from served.backend.lazy_workspaced)
class LazyWorkspaceD via public import served.backend.lazy_workspaced : LazyWorkspaceD;
Undocumented in source.

Enums

ManyProjectsAction
enum ManyProjectsAction
Undocumented in source.
onAddedProject
enum onAddedProject

Event called when a new project root is finished setting up. Called when all components are loaded. DCD is loaded but not yet started at this point. Signature: (WorkspaceD.Instance, string dir, string rootFolderUri)

onAddingProject
enum onAddingProject

Event called when a new workspaced instance is created. Called before dub or fsworkspace is loaded. Signature: (WorkspaceD.Instance, string dir, string uri)

onProjectAvailable
enum onProjectAvailable

Event called when a project is available but not intended to be loaded yet. Should not access any components, otherwise it will force a load, but only show hints in the UI. When it's accessed and actually being loaded the events onAddingProject and onAddedProject will be emitted. Signature: (WorkspaceD.Instance, string dir, string uri)

onRegisteredComponents
enum onRegisteredComponents

Event called when all components have been registered but no workspaces have been setup yet. Signature: ()

Functions

activeInstance
WorkspaceD.Instance activeInstance(WorkspaceD.Instance value)
Undocumented in source. Be warned that the author may not have intended to support it.
activeInstance
WorkspaceD.Instance activeInstance()
Undocumented in source. Be warned that the author may not have intended to support it.
anyConfig
Configuration anyConfig()
Undocumented in source. Be warned that the author may not have intended to support it.
bestWorkspaceByDependency
Workspace bestWorkspaceByDependency(string uri)
Undocumented in source. Be warned that the author may not have intended to support it.
config
Configuration config(string uri, bool userExecuted, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
firstWorkspaceRootUri
string firstWorkspaceRootUri()
Undocumented in source. Be warned that the author may not have intended to support it.
handleThings
Workspace handleThings(Workspace workspace, string uri, bool userExecuted, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
hasWorkspace
bool hasWorkspace(string uri)
Undocumented in source. Be warned that the author may not have intended to support it.
parseDflagsImports (from served.utils.stdlib_detect)
deprecated string[] parseDflagsImports(const(char)[] options, const(char)[] cwd, bool windows) via public import served.utils.stdlib_detect : parseDmdConfImports, parseDflagsImports;
Undocumented in source.
parseDmdConfImports (from served.utils.stdlib_detect)
deprecated bool parseDmdConfImports(R confPath, const(char)[] confDirPath, string[] paths) via public import served.utils.stdlib_detect : parseDmdConfImports, parseDflagsImports;
Undocumented in source.
prettyPrintStruct
void prettyPrintStruct(T value, string indent)
Undocumented in source. Be warned that the author may not have intended to support it.
seemsLikeDubJson
bool seemsLikeDubJson(string json)

Quick function to check if a package.json can not not be a dub package file.

selectedWorkspace
Workspace selectedWorkspace()
Undocumented in source. Be warned that the author may not have intended to support it.
selectedWorkspaceRoot
string selectedWorkspaceRoot()
Undocumented in source. Be warned that the author may not have intended to support it.
selectedWorkspaceUri
string selectedWorkspaceUri()
Undocumented in source. Be warned that the author may not have intended to support it.
toInt
int toInt(JsonValue value)
Undocumented in source. Be warned that the author may not have intended to support it.
userPath
string userPath(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
userPath
string userPath(Configuration.Git git)
Undocumented in source. Be warned that the author may not have intended to support it.
workspace
Workspace workspace(string uri, bool userExecuted, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
workspaceIndex
size_t workspaceIndex(string uri)
Undocumented in source. Be warned that the author may not have intended to support it.
workspaceRoot
deprecated string workspaceRoot()
Undocumented in source. Be warned that the author may not have intended to support it.
workspaceRootFor
string workspaceRootFor(string uri)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

IncludedFeatures
enum IncludedFeatures;
Undocumented in source.
requiredLibdparsePageCount
enum requiredLibdparsePageCount;
Undocumented in source.
requiredLibdparsePageCount
enum requiredLibdparsePageCount;
Undocumented in source.

Mixins

lspRouter
mixin LanguageServerRouter!(served.extension, lsConfig) lspRouter
Undocumented in source.

Static variables

backend
LazyWorkspaceD backend;
Undocumented in source.
lsConfig
LanguageServerConfig lsConfig;
Undocumented in source.
startupTime
MonoTime startupTime;
Undocumented in source.

Structs

Configuration
struct Configuration
Undocumented in source.
Workspace
struct Workspace
Undocumented in source.

Variables

_activeInstance
WorkspaceD.Instance _activeInstance;
Undocumented in source.
capabilities
ClientCapabilities capabilities;
Undocumented in source.
fallbackWorkspace
Workspace fallbackWorkspace;
Undocumented in source.
workspaces
Workspace[] workspaces;
Undocumented in source.

Mixed In Members

From mixin LanguageServerRouter!(served.extension, lsConfig) lspRouter

shutdownRequested
alias shutdownRequested = ExtensionModule.shutdownRequested
Undocumented in source.
shutdownRequested
bool shutdownRequested;
Undocumented in source.
serverInitializeCalled
bool serverInitializeCalled;
Undocumented in source.
eventProcessor
mixin EventProcessor!(ExtensionModule, serverConfig.eventConfig) eventProcessor
Undocumented in source.
processRequest
ResponseMessageRaw processRequest(RequestMessageRaw msg)

Calls a method associated with the given request type in the

processNotify
void processNotify(RequestMessageRaw msg)
Undocumented in source. Be warned that the author may not have intended to support it.
gotRequest
void delegate() gotRequest(RequestMessageRaw msg)
Undocumented in source. Be warned that the author may not have intended to support it.
gotNotify
void delegate() gotNotify(RequestMessageRaw msg)
Undocumented in source. Be warned that the author may not have intended to support it.
fibers
FiberManager fibers;
Undocumented in source.
fibersMutex
Mutex fibersMutex;
Undocumented in source.
pushFiber
void pushFiber(T callback, int pages, string file, int line)
Undocumented in source. Be warned that the author may not have intended to support it.
rpc
RPCProcessor rpc;
Undocumented in source.
documents
TextDocumentManager documents;
Undocumented in source.
run
bool run()

Runs the language server and returns true once it exited gracefully or false if it didn't exit gracefully.

runImpl
bool runImpl()

Same as run, assumes rpc is initialized and ready

Meta