From ed8394b010ee6181fb9e9cd204b417b94dfaf93d Mon Sep 17 00:00:00 2001 From: Maciej Stosio Date: Tue, 19 Nov 2024 15:41:23 +0100 Subject: [PATCH] chore: fix lint --- .../src/devices/AndroidEmulatorDevice.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/vscode-extension/src/devices/AndroidEmulatorDevice.ts b/packages/vscode-extension/src/devices/AndroidEmulatorDevice.ts index e3d0651e..afcf40de 100644 --- a/packages/vscode-extension/src/devices/AndroidEmulatorDevice.ts +++ b/packages/vscode-extension/src/devices/AndroidEmulatorDevice.ts @@ -379,7 +379,8 @@ export class AndroidEmulatorDevice extends DeviceBase { } async mirrorNativeLogs(build: AndroidBuildResult) { - const extractPidFromLogcat = async () => new Promise(async (resolve, reject) => { + const extractPidFromLogcat = async () => + new Promise(async (resolve, reject) => { const regexString = `Start proc ([0-9]{4}):${build.packageName}`; const process = exec(ADB_PATH, ["logcat", "-e", regexString]); this.nativeLogsCancelToken.adapt(process); @@ -400,7 +401,7 @@ export class AndroidEmulatorDevice extends DeviceBase { } }); - // We should be able to get pid immediately, if we're not getting it in 2s, then we reject to not block the app. + // We should be able to get pid immediately, if we're not getting it in 2s, then we reject to not block the app. setTimeout(() => { process.kill(); reject(new Error("Timeout while waiting for app to start to get the process PID.")); @@ -408,7 +409,10 @@ export class AndroidEmulatorDevice extends DeviceBase { }); if (!this.nativeLogsOutputChannel) { - this.nativeLogsOutputChannel = window.createOutputChannel("Radon IDE (Android Emulator Logs)", 'log'); + this.nativeLogsOutputChannel = window.createOutputChannel( + "Radon IDE (Android Emulator Logs)", + "log" + ); } this.nativeLogsOutputChannel.clear(); @@ -426,7 +430,7 @@ export class AndroidEmulatorDevice extends DeviceBase { // terminate the app before launching, otherwise launch commands won't actually start the process which // may be in a bad state await exec(ADB_PATH, ["-s", this.serial!, "shell", "am", "force-stop", build.packageName]); - + this.mirrorNativeLogs(build); const deepLinkChoice =