From f64dddeeb4e59e104725a380b84495c87b537a2c Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 8 Jul 2020 08:01:26 +0530 Subject: [PATCH] Show xdebug.mode=coverage log for Xdebug 3.0 --- dist/index.js | 3 +-- src/coverage.ts | 8 +++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index d51325bd..390c5e85 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3007,8 +3007,7 @@ const config = __importStar(__webpack_require__(641)); async function addCoverageXdebug(extension, version, os_version, pipe) { const xdebug = (await extensions.addExtension(extension, version, os_version, true)) + pipe; - const ini = (await config.addINIValues('xdebug.mode=coverage', os_version, true)) + - pipe; + const ini = await config.addINIValues('xdebug.mode=coverage', os_version, true); const log = await utils.addLog('$tick', extension, 'Xdebug enabled as coverage driver', os_version); switch (true) { case /^xdebug3$/.test(extension): diff --git a/src/coverage.ts b/src/coverage.ts index 182c280e..cbd26070 100644 --- a/src/coverage.ts +++ b/src/coverage.ts @@ -19,9 +19,11 @@ export async function addCoverageXdebug( const xdebug = (await extensions.addExtension(extension, version, os_version, true)) + pipe; - const ini = - (await config.addINIValues('xdebug.mode=coverage', os_version, true)) + - pipe; + const ini = await config.addINIValues( + 'xdebug.mode=coverage', + os_version, + true + ); const log = await utils.addLog( '$tick', extension,