提交 fbfe7007 编写于 作者: D Dirk Baeumer

Fixed #28998: Cannot read property 'resource' of null

上级 b01ffcf5
......@@ -1312,7 +1312,7 @@ class TaskService extends EventEmitter implements ITaskService {
}
private hasDetectorSupport(config: TaskConfig.ExternalTaskRunnerConfiguration): boolean {
if (!config.command) {
if (!config.command || !this.contextService.hasWorkspace()) {
return false;
}
return ProcessRunnerDetector.supports(config.command);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册