File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/vs/workbench/contrib/tasks/browser Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -1180,7 +1180,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
1180
1180
shellLaunchConfig . args = windowsShellArgs ? combinedShellArgs . join ( ' ' ) : combinedShellArgs ;
1181
1181
if ( task . command . presentation && task . command . presentation . echo ) {
1182
1182
if ( needsFolderQualification && workspaceFolder ) {
1183
- const folder = cwd ? path . posix . basename ( cwd . toString ( ) ) : workspaceFolder . name ;
1183
+ const folder = cwd && typeof cwd === 'object' && 'path' in cwd ? path . basename ( cwd . path ) : workspaceFolder . name ;
1184
1184
shellLaunchConfig . initialText = this . taskShellIntegrationStartSequence ( cwd ) + formatMessageForTerminal ( nls . localize ( {
1185
1185
key : 'task.executingInFolder' ,
1186
1186
comment : [ 'The workspace folder the task is running in' , 'The task command line or label' ]
You can’t perform that action at this time.
0 commit comments