mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
parent
e885e5fd9f
commit
ae5e0c11a3
|
@ -240,7 +240,7 @@ class InternalTerminalShellExecution {
|
|||
get exitCode(): Promise<number | undefined> {
|
||||
return that._exitCode;
|
||||
},
|
||||
createDataStream(): AsyncIterable<string> {
|
||||
readData(): AsyncIterable<string> {
|
||||
return that._createDataStream();
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue