MCPcopy Create free account
hub / github.com/code-forge-io/Remix-Forge / createOrGetTerminal

Function createOrGetTerminal

src/utils/vscode.ts:154–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152}
153
154export const createOrGetTerminal = () => {
155 const terminals = vscode.window.terminals;
156 if (terminals.length > 0) {
157 const terminal = terminals.find((t) => !t.state.isInteractedWith);
158 if (terminal) {
159 return terminal;
160 }
161 }
162 return vscode.window.createTerminal();
163};
164
165export const runCommand = async (params: RunCommandOptions) => {
166 await commandWithLoading(params.title, () => runCommandInTask(params));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected