Skip to content

Commit dc08bc6

Browse files
committed
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.
1 parent e5b7438 commit dc08bc6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/vscode/src/vs/server/node/channel.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { TerminalDataBufferer } from 'vs/platform/terminal/common/terminalDataBu
3333
import * as terminalEnvironment from 'vs/workbench/contrib/terminal/common/terminalEnvironment';
3434
import { getMainProcessParentEnv } from 'vs/workbench/contrib/terminal/node/terminalEnvironment';
3535
import { TerminalProcess } from 'vs/platform/terminal/node/terminalProcess';
36+
import { ISetTerminalLayoutInfoArgs, IGetTerminalLayoutInfoArgs } from 'vs/platform/terminal/common/terminalProcess'
3637
import { AbstractVariableResolverService } from 'vs/workbench/services/configurationResolver/common/variableResolver';
3738
import { ExtensionScanner, ExtensionScannerInput } from 'vs/workbench/services/extensions/node/extensionPoints';
3839

@@ -639,7 +640,7 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
639640
private readonly terminals = new Map<number, Terminal>();
640641
private id = 0;
641642

642-
private readonly layouts = new Map<string, terminal.ISetTerminalLayoutInfoArgs>();
643+
private readonly layouts = new Map<string, ISetTerminalLayoutInfoArgs>();
643644

644645
public constructor (private readonly logService: ILogService) {
645646

@@ -876,11 +877,11 @@ export class TerminalProviderChannel implements IServerChannel<RemoteAgentConnec
876877
return terminals.filter((t) => t.isOrphan);
877878
}
878879

879-
public async setTerminalLayoutInfo(args: terminal.ISetTerminalLayoutInfoArgs): Promise<void> {
880+
public async setTerminalLayoutInfo(args: ISetTerminalLayoutInfoArgs): Promise<void> {
880881
this.layouts.set(args.workspaceId, args);
881882
}
882883

883-
public async getTerminalLayoutInfo(args: terminal.IGetTerminalLayoutInfoArgs): Promise<ITerminalsLayoutInfo | undefined> {
884+
public async getTerminalLayoutInfo(args: IGetTerminalLayoutInfoArgs): Promise<ITerminalsLayoutInfo | undefined> {
884885
const layout = this.layouts.get(args.workspaceId);
885886
if (!layout) {
886887
return undefined;

0 commit comments

Comments
 (0)