From ae5e0c11a3969fa8c1b47a8a62cdca9ad3c08517 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Thu, 28 Mar 2024 10:06:35 -0700 Subject: [PATCH] createDataStream -> readData Fixes #208640 --- .../workbench/api/common/extHostTerminalShellIntegration.ts | 2 +- src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/vs/workbench/api/common/extHostTerminalShellIntegration.ts b/src/vs/workbench/api/common/extHostTerminalShellIntegration.ts index 0e2a6358f13..a825c608318 100644 --- a/src/vs/workbench/api/common/extHostTerminalShellIntegration.ts +++ b/src/vs/workbench/api/common/extHostTerminalShellIntegration.ts @@ -240,7 +240,7 @@ class InternalTerminalShellExecution { get exitCode(): Promise { return that._exitCode; }, - createDataStream(): AsyncIterable { + readData(): AsyncIterable { return that._createDataStream(); } }; diff --git a/src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts b/src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts index 342211a497e..61434194c00 100644 --- a/src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +++ b/src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts @@ -51,12 +51,12 @@ declare module 'vscode' { * @example * // Log all data written to the terminal for a command * const command = term.shellIntegration.executeCommand({ commandLine: 'echo "Hello world"' }); - * const stream = command.createDataStream(); + * const stream = command.readData(); * for await (const data of stream) { * console.log(data); * } */ - createDataStream(): AsyncIterable; + readData(): AsyncIterable; } export interface Terminal {