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

Function resolveEditorCommand

packages/server/src/lib/fileLaunch.ts:209–215  ·  view source on GitHub ↗
(env: Record<string, string | undefined>)

Source from the content-addressed store, hash-verified

207}
208
209function resolveEditorCommand(env: Record<string, string | undefined>): string | undefined {
210 for (const key of ['KIMI_CODE_EDITOR', 'VISUAL', 'EDITOR']) {
211 const value = env[key];
212 if (typeof value === 'string' && value.trim().length > 0) return value.trim();
213 }
214 return undefined;
215}
216
217function supportsLineTarget(command: string): boolean {
218 const first = command.trim().split(/\s+/)[0] ?? '';

Callers 1

openFileCommandForFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected