mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
@@ -419,9 +419,11 @@ export class MainThreadTask implements MainThreadTaskShape {
|
||||
if (event.kind === TaskEventKind.Start) {
|
||||
const execution = TaskExecutionDTO.from(task.getTaskExecution());
|
||||
let resolvedDefinition: TaskDefinitionDTO | undefined;
|
||||
if (execution.task && execution.task.execution && CustomExecutionDTO.is(execution.task.execution)) {
|
||||
resolvedDefinition = await this._configurationResolverService.resolveWithInteractionReplace(task.getWorkspaceFolder(),
|
||||
execution.task.definition, 'tasks');
|
||||
if (execution.task && execution.task.execution && CustomExecutionDTO.is(execution.task.execution) && event.resolvedVariables) {
|
||||
const dictionary: IStringDictionary<string> = {};
|
||||
Array.from(event.resolvedVariables.entries()).forEach(entry => dictionary[entry[0]] = entry[1]);
|
||||
resolvedDefinition = await this._configurationResolverService.resolveAny(task.getWorkspaceFolder(),
|
||||
execution.task.definition, dictionary);
|
||||
}
|
||||
this._proxy.$onDidStartTask(execution, event.terminalId!, resolvedDefinition);
|
||||
} else if (event.kind === TaskEventKind.ProcessStarted) {
|
||||
|
||||
Reference in New Issue
Block a user