diff --git a/CHANGELOG.md b/CHANGELOG.md index d955f92..44f6891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/utils.py b/lib/utils.py index 662818c..9ae7733 100644 --- a/lib/utils.py +++ b/lib/utils.py @@ -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 @@ -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)