Skip to content

Commit ae5e0c1

Browse files
committed
createDataStream -> readData
Fixes microsoft#208640
1 parent e885e5f commit ae5e0c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/vs/workbench/api/common/extHostTerminalShellIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class InternalTerminalShellExecution {
240240
get exitCode(): Promise<number | undefined> {
241241
return that._exitCode;
242242
},
243-
createDataStream(): AsyncIterable<string> {
243+
readData(): AsyncIterable<string> {
244244
return that._createDataStream();
245245
}
246246
};

src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ declare module 'vscode' {
5151
* @example
5252
* // Log all data written to the terminal for a command
5353
* const command = term.shellIntegration.executeCommand({ commandLine: 'echo "Hello world"' });
54-
* const stream = command.createDataStream();
54+
* const stream = command.readData();
5555
* for await (const data of stream) {
5656
* console.log(data);
5757
* }
5858
*/
59-
createDataStream(): AsyncIterable<string>;
59+
readData(): AsyncIterable<string>;
6060
}
6161

6262
export interface Terminal {

0 commit comments

Comments
 (0)