MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / supportsLineTarget

Function supportsLineTarget

packages/server/src/lib/fileLaunch.ts:217–220  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

215}
216
217function supportsLineTarget(command: string): boolean {
218 const first = command.trim().split(/\s+/)[0] ?? '';
219 return /(?:^|\/)(code|cursor|windsurf)(?:\.cmd|\.exe)?$/i.test(first);
220}
221
222function quoteShellArg(value: string, platform: NodeJS.Platform): string {
223 if (platform === 'win32') return `"${value.replaceAll('"', '\\"')}"`;

Callers 1

openFileCommandForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected