MCPcopy Index your code
hub / github.com/continuedev/continue / getSessionInfo

Function getSessionInfo

extensions/cli/src/infoScreen.ts:57–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57function getSessionInfo(): string[] {
58 const lines: string[] = ["", chalk.white("Session:")];
59
60 try {
61 const currentSession = getCurrentSession();
62 const sessionFilePath = getSessionFilePath();
63 lines.push(
64 ` Title: ${chalk.green(currentSession.title)}`,
65 ` ID: ${chalk.gray(currentSession.sessionId)}`,
66 ` File: ${chalk.blue(sessionFilePath)}`,
67 );
68 } catch {
69 lines.push(` ${chalk.red("Session not available")}`);
70 }
71
72 return lines;
73}
74
75function getUsageInfo(): string[] {
76 const lines: string[] = ["", chalk.white("Usage:")];

Callers 1

handleInfoSlashCommandFunction · 0.85

Calls 3

getCurrentSessionFunction · 0.85
getSessionFilePathFunction · 0.70
pushMethod · 0.65

Tested by

no test coverage detected