Skip to content

Commit fbfe700

Browse files
committed
Fixed microsoft#28998: Cannot read property 'resource' of null
1 parent b01ffcf commit fbfe700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/parts/tasks/electron-browser/task.contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ class TaskService extends EventEmitter implements ITaskService {
13121312
}
13131313

13141314
private hasDetectorSupport(config: TaskConfig.ExternalTaskRunnerConfiguration): boolean {
1315-
if (!config.command) {
1315+
if (!config.command || !this.contextService.hasWorkspace()) {
13161316
return false;
13171317
}
13181318
return ProcessRunnerDetector.supports(config.command);

0 commit comments

Comments
 (0)