mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
fix #131571
This commit is contained in:
@@ -414,8 +414,14 @@ export abstract class BaseExtHostTerminalService extends Disposable implements I
|
||||
}
|
||||
|
||||
private _resolveLocation(location?: TerminalLocation | vscode.TerminalEditorLocationOptions | vscode.TerminalSplitLocationOptions): undefined | TerminalLocation | vscode.TerminalEditorLocationOptions {
|
||||
if (typeof location === 'object' && 'parentTerminal' in location) {
|
||||
if (typeof location === 'object' && 'viewColumn' in location && location.viewColumn !== undefined) {
|
||||
return { viewColumn: location.viewColumn, preserveFocus: location.preserveFocus };
|
||||
} else if (typeof location === 'object' && 'parentTerminal' in location) {
|
||||
// parent terminal exthost ID is passed in internal options
|
||||
// for conversion to TerminalInstance in mainThreadTerminalService
|
||||
return undefined;
|
||||
} else if (location === TerminalLocation.Editor || location === TerminalLocation.Panel) {
|
||||
return location;
|
||||
}
|
||||
return location;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user