MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / openInTerminal

Function openInTerminal

vscode-extension/src/extension.ts:87–92  ·  view source on GitHub ↗

Command 1: open QodeX in a terminal at workspace root (interactive).

(uri?: vscode.Uri)

Source from the content-addressed store, hash-verified

85
86/** Command 1: open QodeX in a terminal at workspace root (interactive). */
87async function openInTerminal(uri?: vscode.Uri): Promise<void> {
88 const cfg = getConfig();
89 const cwd = uri?.fsPath ?? getCwd();
90 const term = getOrCreateTerminal(cwd);
91 term.sendText(cfg.executablePath);
92}
93
94/** Command 2: ask QodeX about the current selection (or whole file). */
95async function askAboutSelection(): Promise<void> {

Callers

nothing calls this directly

Calls 3

getConfigFunction · 0.85
getCwdFunction · 0.85
getOrCreateTerminalFunction · 0.85

Tested by

no test coverage detected