Skip to content

Commit

Permalink
fix: debug mode should be disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardroche committed Nov 12, 2023
1 parent bde8100 commit 2eca906
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

All notable changes are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.

## 3.18.2 - Unreleased
## 3.18.2 - 2023-11-12

### Fixed

- Fix debug mode should be disabled by default
- Fix result output footer edge-cases

## 3.18.1 - 2023-08-16
Expand Down
12 changes: 12 additions & 0 deletions lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import re
import shutil

from sublime import active_window
from sublime import platform
from sublime import status_message
from sublime import version
Expand All @@ -31,6 +32,17 @@


def debug_message(msg, *args) -> None:
window = active_window()
if not window:
return

view = window.active_view()
if not view:
return

if not is_debug(view):
return

if args:
msg = msg % args
print('PHPUnit: ' + msg)
Expand Down

0 comments on commit 2eca906

Please sign in to comment.