loadConfig

ai · /lspmesh·functionthrows Error

Resolve the lspmesh config for a working directory. Reads the nearest lspmesh.json (searching upward); falls back to the built-in default rooted at cwd when none exists.

Signature

@nordcom/commerce-ai
function loadConfig(cwd: string): LspMeshConfig;

Parameters

NameTypeDescription
cwdstring

Returns

The resolved configuration, rooted at the config's directory (or cwd).

Throws

Error
when a discovered config is malformed.

AggregatorEngine BackendConfig LspMeshConfig Position RefResult SymbolResult buildMcpServer startLspServer

On this page