From 0e526e84dc727e6d8dc479102cf0fe3ddf838479 Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Wed, 4 Oct 2023 19:05:51 +0000 Subject: [PATCH] lord --- src/client/common/application/applicationShell.ts | 3 +-- src/client/common/application/types.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/client/common/application/applicationShell.ts b/src/client/common/application/applicationShell.ts index 8292fb4cb8fac..9289af5791320 100644 --- a/src/client/common/application/applicationShell.ts +++ b/src/client/common/application/applicationShell.ts @@ -27,7 +27,6 @@ import { SaveDialogOptions, StatusBarAlignment, StatusBarItem, - TerminalDataWriteEvent, TextDocument, TextEditor, TreeView, @@ -40,7 +39,7 @@ import { WorkspaceFolderPickOptions, } from 'vscode'; import { traceError } from '../../logging'; -import { IApplicationShell } from './types'; +import { IApplicationShell, TerminalDataWriteEvent } from './types'; @injectable() export class ApplicationShell implements IApplicationShell { diff --git a/src/client/common/application/types.ts b/src/client/common/application/types.ts index 2f938fde3828a..c8f613ef39a02 100644 --- a/src/client/common/application/types.ts +++ b/src/client/common/application/types.ts @@ -39,7 +39,6 @@ import { StatusBarAlignment, StatusBarItem, Terminal, - TerminalDataWriteEvent, TerminalOptions, TextDocument, TextDocumentChangeEvent, @@ -68,6 +67,17 @@ import { Resource } from '../types'; import { ICommandNameArgumentTypeMapping } from './commands'; import { ExtensionContextKey } from './contextKeys'; +export interface TerminalDataWriteEvent { + /** + * The {@link Terminal} for which the data was written. + */ + readonly terminal: Terminal; + /** + * The data being written. + */ + readonly data: string; +} + export const IApplicationShell = Symbol('IApplicationShell'); export interface IApplicationShell { /**