Command 1: open QodeX in a terminal at workspace root (interactive).
(uri?: vscode.Uri)
| 85 | |
| 86 | /** Command 1: open QodeX in a terminal at workspace root (interactive). */ |
| 87 | async 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). */ |
| 95 | async function askAboutSelection(): Promise<void> { |
nothing calls this directly
no test coverage detected