Skip to content

Commit

Permalink
Merge pull request #209037 from microsoft/tyriar/208640
Browse files Browse the repository at this point in the history
createDataStream -> readData
  • Loading branch information
Tyriar authored Mar 29, 2024
2 parents 7955ac4 + ae5e0c1 commit 960217f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class InternalTerminalShellExecution {
get cwd(): URI | undefined {
return that.cwd;
},
createDataStream(): AsyncIterable<string> {
readData(): AsyncIterable<string> {
return that._createDataStream();
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,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<string>;
readData(): AsyncIterable<string>;
}

export interface Terminal {
Expand Down

0 comments on commit 960217f

Please sign in to comment.