MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / insertSessionName

Function insertSessionName

src/extension/utils.ts:42–46  ·  view source on GitHub ↗
(args: { name: string }, logPath: string | undefined)

Source from the content-addressed store, hash-verified

40}
41
42export function insertSessionName(args: { name: string }, logPath: string | undefined) {
43 return logPath
44 ? logPath.replace(/\${name}/ig, filenameSafe(args.name || "unnamed-session"))
45 : logPath;
46}
47
48export function insertWorkspaceName<T extends string | undefined>(p: T): string | (undefined extends T ? undefined : never) {
49 if (typeof p !== "string")

Callers 2

onWillStartSessionMethod · 0.90
setupDebugConfigMethod · 0.90

Calls 1

filenameSafeFunction · 0.90

Tested by

no test coverage detected