cleanup: remove unused stream property from Terminal

@cte reported that the stream property is not used anywhere in the codebase.
The stream is passed directly to the process via event emitter and does not need to be stored.

Signed-off-by: Eric Wheeler <roo-code@z.ewheeler.org>
This commit is contained in:
Eric Wheeler 2025-03-08 14:24:54 -08:00
parent 5de0133929
commit 1601401888

View file

@ -6,7 +6,6 @@ export class Terminal {
public terminal: vscode.Terminal
public busy: boolean
public id: number
private stream?: AsyncIterable<string>
public running: boolean
private streamClosed: boolean
public process?: TerminalProcess
@ -40,13 +39,6 @@ export class Terminal {
}
}
/**
* Gets the terminal's stream
*/
public getStream(): AsyncIterable<string> | undefined {
return this.stream
}
/**
* Checks if the stream is closed
*/
@ -60,8 +52,6 @@ export class Terminal {
* @throws Error if process is undefined when a stream is provided
*/
public setActiveStream(stream: AsyncIterable<string> | undefined): void {
this.stream = stream
if (stream) {
// New stream is available
if (!this.process) {