mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
Merge pull request #209037 from microsoft/tyriar/208640
createDataStream -> readData
This commit is contained in:
commit
960217faf7
|
@ -238,7 +238,7 @@ class InternalTerminalShellExecution {
|
|||
get cwd(): URI | undefined {
|
||||
return that.cwd;
|
||||
},
|
||||
createDataStream(): AsyncIterable<string> {
|
||||
readData(): AsyncIterable<string> {
|
||||
return that._createDataStream();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue