Skip to content

Commit 96b234d

Browse files
authored
Merge branch 'main' into tyriar/145234_polish
2 parents e370214 + 100f755 commit 96b234d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/vs/workbench/api/common/extHostTerminalShellIntegration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class InternalTerminalShellExecution {
257257
get cwd(): URI | undefined {
258258
return that.cwd;
259259
},
260-
readData(): AsyncIterable<string> {
260+
read(): AsyncIterable<string> {
261261
return that._createDataStream();
262262
}
263263
};

src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,12 @@ declare module 'vscode' {
5454
* @example
5555
* // Log all data written to the terminal for a command
5656
* const command = term.shellIntegration.executeCommand({ commandLine: 'echo "Hello world"' });
57-
* const stream = command.readData();
57+
* const stream = command.read();
5858
* for await (const data of stream) {
5959
* console.log(data);
6060
* }
6161
*/
62-
// TODO: read? "data" typically means Uint8Array. What's the encoding of the string? Usage here will typically be checking for substrings
63-
// TODO: dispose function?
64-
readData(): AsyncIterable<string>;
62+
read(): AsyncIterable<string>;
6563
}
6664

6765
/**

0 commit comments

Comments
 (0)