Skip to content

Commit 960217f

Browse files
authored
Merge pull request microsoft#209037 from microsoft/tyriar/208640
createDataStream -> readData
2 parents 7955ac4 + ae5e0c1 commit 960217f

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
@@ -238,7 +238,7 @@ class InternalTerminalShellExecution {
238238
get cwd(): URI | undefined {
239239
return that.cwd;
240240
},
241-
createDataStream(): AsyncIterable<string> {
241+
readData(): AsyncIterable<string> {
242242
return that._createDataStream();
243243
}
244244
};

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ declare module 'vscode' {
4444
* @example
4545
* // Log all data written to the terminal for a command
4646
* const command = term.shellIntegration.executeCommand({ commandLine: 'echo "Hello world"' });
47-
* const stream = command.createDataStream();
47+
* const stream = command.readData();
4848
* for await (const data of stream) {
4949
* console.log(data);
5050
* }
5151
*/
52-
createDataStream(): AsyncIterable<string>;
52+
readData(): AsyncIterable<string>;
5353
}
5454

5555
export interface Terminal {

0 commit comments

Comments
 (0)