diff --git a/src/vs/platform/log/browser/log.ts b/src/vs/platform/log/browser/log.ts index d54c0b5f1fe..246805d1e54 100644 --- a/src/vs/platform/log/browser/log.ts +++ b/src/vs/platform/log/browser/log.ts @@ -11,7 +11,7 @@ import { AdapterLogger, DEFAULT_LOG_LEVEL, ILogger, LogLevel } from 'vs/platform export interface IAutomatedWindow { codeAutomationLog(type: string, args: any[]): void; - codeAutomationExit(logs: Array, code: number): void; + codeAutomationExit(code: number, logs: Array): void; } export interface ILogFile { diff --git a/src/vs/workbench/services/extensions/browser/extensionService.ts b/src/vs/workbench/services/extensions/browser/extensionService.ts index d08879dc180..4fd780f4ff6 100644 --- a/src/vs/workbench/services/extensions/browser/extensionService.ts +++ b/src/vs/workbench/services/extensions/browser/extensionService.ts @@ -146,7 +146,7 @@ export class ExtensionService extends AbstractExtensionService implements IExten // If we are running extension tests, forward logs and exit code const automatedWindow = window as unknown as IAutomatedWindow; if (typeof automatedWindow.codeAutomationExit === 'function') { - automatedWindow.codeAutomationExit(await getLogs(this._fileService, this._environmentService), code); + automatedWindow.codeAutomationExit(code, await getLogs(this._fileService, this._environmentService)); } } } diff --git a/test/integration/browser/src/index.ts b/test/integration/browser/src/index.ts index f82a69b3430..66ef29ebd29 100644 --- a/test/integration/browser/src/index.ts +++ b/test/integration/browser/src/index.ts @@ -67,7 +67,7 @@ async function runTestsInBrowser(browserType: BrowserType, endpoint: url.UrlWith console[type](...args); }); - await page.exposeFunction('codeAutomationExit', async (logs: Array<{ readonly relativePath: string; readonly contents: string }>, code: number) => { + await page.exposeFunction('codeAutomationExit', async (code: number, logs: Array<{ readonly relativePath: string; readonly contents: string }>) => { try { for (const log of logs) { const absoluteLogsPath = path.join(logsPath, log.relativePath);