File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/vs/workbench/contrib/terminal/browser Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1158,7 +1158,12 @@ export class TerminalService implements ITerminalService {
1158
1158
if ( contributedProfile ) {
1159
1159
const resolvedLocation = this . resolveLocation ( options ?. location ) ;
1160
1160
const splitActiveTerminal = typeof options ?. location === 'object' && 'splitActiveTerminal' in options . location ? options . location . splitActiveTerminal : false ;
1161
- const location = splitActiveTerminal ? resolvedLocation === TerminalLocation . Editor ? { viewColumn : SIDE_GROUP } : { splitActiveTerminal : true } : resolvedLocation ;
1161
+ let location : TerminalLocation | { viewColumn : number , preserveState ?: boolean } | { splitActiveTerminal : boolean } | undefined ;
1162
+ if ( splitActiveTerminal ) {
1163
+ location = resolvedLocation === TerminalLocation . Editor ? { viewColumn : SIDE_GROUP } : { splitActiveTerminal : true } ;
1164
+ } else {
1165
+ location = typeof options ?. location === 'object' && 'viewColumn' in options . location ? options . location : resolvedLocation ;
1166
+ }
1162
1167
await this . _createContributedTerminalProfile ( contributedProfile . extensionIdentifier , contributedProfile . id , {
1163
1168
icon : contributedProfile . icon ,
1164
1169
color : contributedProfile . color ,
You can’t perform that action at this time.
0 commit comments