Skip to content

Commit

Permalink
(#14) Do not pop log panel with no log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Feb 19, 2017
1 parent 199ac5a commit 90e5be2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 4 additions & 3 deletions src/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit 90e5be2

Please sign in to comment.