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

Function openInVsCodeLike

packages/server/src/lib/fileLaunch.ts:138–151  ·  view source on GitHub ↗
(
  binary: string,
  absolutePath: string,
  line: number | undefined,
  platform: NodeJS.Platform,
)

Source from the content-addressed store, hash-verified

136}
137
138function openInVsCodeLike(
139 binary: string,
140 absolutePath: string,
141 line: number | undefined,
142 platform: NodeJS.Platform,
143): LaunchCommand {
144 const target = line !== undefined ? `${absolutePath}:${line}` : absolutePath;
145 const flag = line !== undefined ? '-g ' : '';
146 return {
147 command: `${binary} ${flag}${quoteShellArg(target, platform)}`,
148 args: [],
149 shell: true,
150 };
151}
152
153function openInFinder(
154 absolutePath: string,

Callers 1

openInAppCommandForFunction · 0.85

Calls 1

quoteShellArgFunction · 0.70

Tested by

no test coverage detected