use NotSupportedError for symbols that require the ability to launch processes, https://github.com/microsoft/vscode/issues/101857

This commit is contained in:
Johannes Rieken
2020-07-14 11:32:28 +02:00
parent 8861289597
commit 2d27d4d079
4 changed files with 24 additions and 15 deletions

View File

@@ -26,7 +26,7 @@ import * as Platform from 'vs/base/common/platform';
import { ILogService } from 'vs/platform/log/common/log';
import { IExtHostApiDeprecationService } from 'vs/workbench/api/common/extHostApiDeprecationService';
import { USER_TASKS_GROUP_KEY } from 'vs/workbench/contrib/tasks/common/taskService';
import { NotImplementedError } from 'vs/base/common/errors';
import { NotSupportedError } from 'vs/base/common/errors';
export interface IExtHostTask extends ExtHostTaskShape {
@@ -717,7 +717,7 @@ export class WorkerExtHostTask extends ExtHostTaskBase {
if (CustomExecutionDTO.is(dto.execution)) {
await this.addCustomExecution(dto, task, false);
} else {
throw new NotImplementedError();
throw new NotSupportedError();
}
// Always get the task execution first to prevent timing issues when retrieving it later