未验证 提交 f810da25 编写于 作者: M meganrogge

Fix build

上级 1c4c7c29
......@@ -1736,8 +1736,8 @@ export class TerminalLink implements vscode.TerminalLink {
}
export enum TerminalLocation {
Panel = 0,
Editor = 1,
Panel = 1,
Editor = 2,
}
export class TerminalProfile implements vscode.TerminalProfile {
......
......@@ -6,7 +6,6 @@
import { generateUuid } from 'vs/base/common/uuid';
import { IExtHostRpcService } from 'vs/workbench/api/common/extHostRpcService';
import { BaseExtHostTerminalService, ExtHostTerminal, ITerminalInternalOptions } from 'vs/workbench/api/common/extHostTerminalService';
import { TerminalLocation } from 'vs/workbench/api/common/extHostTypes';
import type * as vscode from 'vscode';
export class ExtHostTerminalService extends BaseExtHostTerminalService {
......@@ -38,7 +37,7 @@ export class ExtHostTerminalService extends BaseExtHostTerminalService {
internalOptions.resolvedExtHostIdentifier = parentExtHostTerminal._id;
}
}
} else if (options.location === TerminalLocation.Editor || options.location === TerminalLocation.Panel) {
} else if (options.location && typeof options.location !== 'object') {
internalOptions.location = options.location;
} else if (internalOptions.location && typeof internalOptions.location === 'object' && 'splitActiveTerminal' in internalOptions.location) {
internalOptions.location = { splitActiveTerminal: true };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册