Skip to main content

LspProcessManager

MS Code Extension API


MS Code Extension API / features/lsp/LspProcessManager

features/lsp/LspProcessManager

Classes

LspProcessManager

Defined in: features/lsp/LspProcessManager.ts:15

Manages the native execution lifecycle, platform toolchain compilation, dependencies provisioning, and background process management for real-time Language Server Protocol (LSP) engines via Capacitor bridges.

Constructors

Constructor

new LspProcessManager(): LspProcessManager

Returns

LspProcessManager

Properties

dynamicConfigs

dynamicConfigs: Record<string, any> = {}

Defined in: features/lsp/LspProcessManager.ts:22

Map dictionary housing schema definitions and capabilities flags registered dynamically by active extensions.

Methods

getActiveLanguage()

getActiveLanguage(): string | null

Defined in: features/lsp/LspProcessManager.ts:213

Resolves the active operational language host identifier from current runtime parameters.

Returns

string | null

Programming language key identifier string, or null if no language engine is running.

registerDynamicConfig()

registerDynamicConfig(language, config): void

Defined in: features/lsp/LspProcessManager.ts:30

Registers a structural language configuration descriptor mapping in memory.

Parameters
language

string

Targeted programming language identifier string.

config

any

Structural capability configurations descriptor mapping.

Returns

void

removeDynamicConfig()

removeDynamicConfig(language): void

Defined in: features/lsp/LspProcessManager.ts:39

Discards a dynamically registered language server configuration mapping from the memory index.

Parameters
language

string

Targeted programming language identifier string to drop.

Returns

void

startServer()

startServer(language): Promise<number | null>

Defined in: features/lsp/LspProcessManager.ts:88

Orchestrates dependency checks, remote package manager updates, post-install configurations, and network port spawning routine configurations to deploy active native runtime server hosts.

Parameters
language

string

Targeted programming language identifier string.

Returns

Promise<number | null>

Dynamic runtime port allocation number assigned to host instances, or null upon installation aborts.

stopServer()

stopServer(): void

Defined in: features/lsp/LspProcessManager.ts:203

Resets runtime pointers, disconnecting trace targets to clean up structural processes.

Returns

void

Variables

lspProcessManager

const lspProcessManager: LspProcessManager

Defined in: features/lsp/LspProcessManager.ts:221

Global singleton reference directing processing actions toward the application shell native platform LSP engine wrapper.