Merge pull request #209037 from microsoft/tyriar/208640

createDataStream -> readData
This commit is contained in:
Daniel Imms 2024-03-29 05:40:30 -07:00 committed by GitHub
commit 960217faf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -238,7 +238,7 @@ class InternalTerminalShellExecution {
get cwd(): URI | undefined {
return that.cwd;
},
createDataStream(): AsyncIterable<string> {
readData(): AsyncIterable<string> {
return that._createDataStream();
}
};

View file

@ -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 {