createDataStream -> readData

Fixes #208640
This commit is contained in:
Daniel Imms 2024-03-28 10:06:35 -07:00
parent e885e5fd9f
commit ae5e0c11a3
No known key found for this signature in database
GPG key ID: E5CF412B63651C69
2 changed files with 3 additions and 3 deletions

View file

@ -240,7 +240,7 @@ class InternalTerminalShellExecution {
get exitCode(): Promise<number | undefined> {
return that._exitCode;
},
createDataStream(): AsyncIterable<string> {
readData(): AsyncIterable<string> {
return that._createDataStream();
}
};

View file

@ -51,12 +51,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 {