From 90e5be26de6ac749352082583f675c633335dfbc Mon Sep 17 00:00:00 2001 From: James-Yu Date: Sun, 19 Feb 2017 11:17:20 +0800 Subject: [PATCH] (#14) Do not pop log panel with no log messages --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/compile.ts | 7 ++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbf3ba306..175046b81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.2.15] - 2017-02-19 +### Changed +- (#14) Do not pop log panel with no log messages. + ## [0.2.14] - 2017-02-16 ### Changed - (#13) Remove quote autocomplete. diff --git a/package.json b/package.json index a4cbae4de..7af6fb71f 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "LaTeX Workshop", "description": "Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.", "icon": "img/icon.png", - "version": "0.2.14", + "version": "0.2.15", "publisher": "James-Yu", "license": "MIT", "homepage": "https://github.com/James-Yu/LaTeX-Workshop", diff --git a/src/compile.ts b/src/compile.ts index 06e0d6c8d..5d52863d1 100644 --- a/src/compile.ts +++ b/src/compile.ts @@ -88,13 +88,14 @@ export async function compile() { } var log_level = configuration.get('log_level'); if (entries.all.length > 0) { - latex_workshop.workshop_output.show(); latex_workshop.workshop_output.append('\n------------\nLaTeX Log Parser Result\n'); for (var entry of entries.all) { if ((entry.level == 'typesetting' && log_level == 'all') || (entry.level == 'warning' && log_level != 'error') || - (entry.level == 'error')) - latex_workshop.workshop_output.append(`[${entry_tag[entry.level]}][${entry.file}:${entry.line}] ${entry.message}\n`) + (entry.level == 'error')) { + latex_workshop.workshop_output.append(`[${entry_tag[entry.level]}][${entry.file}:${entry.line}] ${entry.message}\n`); + latex_workshop.workshop_output.show(); + } } }