Skip to content

Commit

Permalink
issue-976: Provide colours for warning messages in console log (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
djelinek authored Oct 16, 2023
1 parent 2a81991 commit d0b325f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class ExTester {
const expectedChromeVersion = (await this.code.checkOfflineRequirements()).split('.')[0];
const actualChromeVersion = (await this.chrome.checkDriverVersionOffline()).split('.')[0];
if (expectedChromeVersion !== actualChromeVersion) {
console.log(`WARNING: Local copy of VS Code runs Chromium version ${expectedChromeVersion}, the installed ChromeDriver is version ${actualChromeVersion}.`)
console.log('\x1b[33m%s\x1b[0m', `WARNING: Local copy of VS Code runs Chromium version ${expectedChromeVersion}, the installed ChromeDriver is version ${actualChromeVersion}.`)
console.log(`Attempting with ChromeDriver ${actualChromeVersion} anyway. Tests may experience issues due to version mismatch.`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/codeUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class CodeUtil {

const literalVersion = version === 'latest' ? this.availableVersions[0] : version;
if (this.releaseType == ReleaseQuality.Stable && literalVersion !== this.availableVersions[0]) {
console.log(`
console.log('\x1b[33m%s\x1b[0m', `
WARNING: You are using the outdated VSCode version '${literalVersion}'. The latest stable version is '${this.availableVersions[0]}'.
`);
}
Expand Down

0 comments on commit d0b325f

Please sign in to comment.