Quote a shell string for bash / zsh.
(s: string)
| 79 | |
| 80 | /** Quote a shell string for bash / zsh. */ |
| 81 | function shellQuote(s: string): string { |
| 82 | // Single-quote everything; escape embedded single quotes |
| 83 | return "'" + s.replace(/'/g, "'\\''") + "'"; |
| 84 | } |
| 85 | |
| 86 | /** Command 1: open QodeX in a terminal at workspace root (interactive). */ |
| 87 | async function openInTerminal(uri?: vscode.Uri): Promise<void> { |
no outgoing calls
no test coverage detected