From dc08bc68c6b2935d27588a0f0244dee1c06f62fc Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Thu, 11 Mar 2021 15:26:05 -0700 Subject: [PATCH] fix(lib/vscode): fix terminalLayoutInfoArgs It looks like before, the ISetTerminalLAyoutInfoArgs and IGetTerminalLayoutInfoArgs were part of the terminal interface, but now they're just interfaces so this commit fixes the imports to get them from vs/platform/terminal/common/terminalProcess. --- lib/vscode/src/vs/server/node/channel.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/vscode/src/vs/server/node/channel.ts b/lib/vscode/src/vs/server/node/channel.ts index 28ca22c5..1074509e 100644 --- a/lib/vscode/src/vs/server/node/channel.ts +++ b/lib/vscode/src/vs/server/node/channel.ts @@ -33,6 +33,7 @@ import { TerminalDataBufferer } from 'vs/platform/terminal/common/terminalDataBu import * as terminalEnvironment from 'vs/workbench/contrib/terminal/common/terminalEnvironment'; import { getMainProcessParentEnv } from 'vs/workbench/contrib/terminal/node/terminalEnvironment'; import { TerminalProcess } from 'vs/platform/terminal/node/terminalProcess'; +import { ISetTerminalLayoutInfoArgs, IGetTerminalLayoutInfoArgs } from 'vs/platform/terminal/common/terminalProcess' import { AbstractVariableResolverService } from 'vs/workbench/services/configurationResolver/common/variableResolver'; import { ExtensionScanner, ExtensionScannerInput } from 'vs/workbench/services/extensions/node/extensionPoints'; @@ -639,7 +640,7 @@ export class TerminalProviderChannel implements IServerChannel(); private id = 0; - private readonly layouts = new Map(); + private readonly layouts = new Map(); public constructor (private readonly logService: ILogService) { @@ -876,11 +877,11 @@ export class TerminalProviderChannel implements IServerChannel t.isOrphan); } - public async setTerminalLayoutInfo(args: terminal.ISetTerminalLayoutInfoArgs): Promise { + public async setTerminalLayoutInfo(args: ISetTerminalLayoutInfoArgs): Promise { this.layouts.set(args.workspaceId, args); } - public async getTerminalLayoutInfo(args: terminal.IGetTerminalLayoutInfoArgs): Promise { + public async getTerminalLayoutInfo(args: IGetTerminalLayoutInfoArgs): Promise { const layout = this.layouts.get(args.workspaceId); if (!layout) { return undefined;