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 {