// eat the error, it has already been surfaced to the user and we don't care about it here
});
}else{
}else{
this.notificationService.warn(nls.localize('TaskSystem.restartFailed','Failed to terminate and restart task {0}',Types.isString(task)?task:task.name));
this.notificationService.warn(nls.localize('TaskSystem.restartFailed','Failed to terminate and restart task {0}',Types.isString(task)?task:task.name));
thrownewError(nls.localize('stringsOnlySupported',"Command '{0}' did not return a string result. Only strings are supported as results for commands used for variable substitution.",commandVariable));
thrownewError(nls.localize('stringsOnlySupported',"Command '{0}' did not return a string result. Only strings are supported as results for commands used for variable substitution.",commandVariable));
...
@@ -162,6 +174,156 @@ export class ConfigurationResolverService extends AbstractVariableResolverServic
...
@@ -162,6 +174,156 @@ export class ConfigurationResolverService extends AbstractVariableResolverServic
assert.strictEqual(service.resolve(workspace,'${config:editor.fontFamily} ${config:terminal.integrated.fontFamily} ${workspaceFolder} - ${workspaceFolder} ${env:key1} - ${env:key2}'),'foo bar \\VSCode\\workspaceLocation - \\VSCode\\workspaceLocation Value for key1 - Value for key2');
assert.strictEqual(service.resolve(workspace,'${config:editor.fontFamily} ${config:terminal.integrated.fontFamily} ${workspaceFolder} - ${workspaceFolder} ${env:key1} - ${env:key2}'),'foo bar \\VSCode\\workspaceLocation - \\VSCode\\workspaceLocation Value for key1 - Value for key2');