11 lines
369 B
TypeScript
11 lines
369 B
TypeScript
import { env } from 'vscode';
|
|
import { ExecutionTreeItem } from "../../tree/functions/executions/ExecutionTreeItem";
|
|
|
|
export async function copyExecutionErrors(executionItem: ExecutionTreeItem): Promise<void> {
|
|
if (executionItem === undefined) {
|
|
return;
|
|
}
|
|
|
|
const execution = executionItem.execution;
|
|
env.clipboard.writeText(execution.stderr);
|
|
}
|