From d3ac2a264ba9c6ad2d2ab8a50a7e1e922a08bb5c Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Wed, 4 Oct 2023 19:27:17 +0000 Subject: [PATCH] tYPE --- 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 d67ccbe15a13..95fde82b8e90 100644 --- a/src/client/common/application/applicationShell.ts +++ b/src/client/common/application/applicationShell.ts @@ -26,7 +26,6 @@ import { SaveDialogOptions, StatusBarAlignment, StatusBarItem, - TerminalDataWriteEvent, TextDocument, TextEditor, TreeView, @@ -38,7 +37,7 @@ import { WorkspaceFolder, WorkspaceFolderPickOptions, } from 'vscode'; -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 a8a8536bf61a..863f5e4651b2 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 { /**