INNER CODE UNIT · TypeScript
startDenoDevServer
lmstudio-ai/lms · src/subcommands/dev/index.ts:168
async function startDenoDevServer(
projectPath: string,
manifest: PluginManifest,
logger: SimpleLogger,
client: LMStudioClient,
{ noNotify }: { noNotify: boolean },
) {
const watcher = new DenoPluginRunnerWatcher(projectPath, logger);
const pluginProcess = new DenoPluginProcess(projectPath, client, watcher.entryFilePath, logger, {
noNotify,
});
watcher.updatedEvent.subscribe(() => {
pluginProcess.run();
});
await watcher.start();
}