Skip to content

Commit 3690fc5

Browse files
committed
1 parent 5ce6349 commit 3690fc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/workbench/contrib/tasks/browser/terminalTaskSystem.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ export class TerminalTaskSystem extends Disposable implements ITaskSystem {
11801180
shellLaunchConfig.args = windowsShellArgs ? combinedShellArgs.join(' ') : combinedShellArgs;
11811181
if (task.command.presentation && task.command.presentation.echo) {
11821182
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;
11841184
shellLaunchConfig.initialText = this.taskShellIntegrationStartSequence(cwd) + formatMessageForTerminal(nls.localize({
11851185
key: 'task.executingInFolder',
11861186
comment: ['The workspace folder the task is running in', 'The task command line or label']

0 commit comments

Comments
 (0)