Fix #245 Log parser file resolve from root instead of stack

This commit is contained in:
James-Yu 2017-08-22 09:43:57 +08:00
parent e40100ac46
commit 0323cb7f8f
3 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,12 @@
# Change Log
## [3.3.3] - 2017-08-22
### Fixed
- (#235) Add surrounding pairs for opening ` and closing '.
- (#239) Support `label={some-label}` type reference.
- (#242) Correct bibtex parser position offset.
- (#245) Log parser file resolve from root instead of stack.
## [3.3.2] - 2017-08-15
### Fixed
- Reverse synctex opens `tex` file in the wrong view column when bottom panel is visible.

View File

@ -3,7 +3,7 @@
"displayName": "LaTeX Workshop",
"description": "Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.",
"icon": "icon.png",
"version": "3.3.2",
"version": "3.3.3",
"publisher": "James-Yu",
"license": "MIT",
"homepage": "https://github.com/James-Yu/LaTeX-Workshop",

View File

@ -101,12 +101,7 @@ export class Parser {
let nested = 0
for (const line of lines) {
// Compose the current file
const filename = path.resolve(...fileStack.map((file, index) => {
if (index < fileStack.length - 1) {
return path.dirname(file)
}
return file
}))
const filename = path.resolve(this.extension.manager.rootDir, fileStack[fileStack.length - 1])
// append the read line, since we have a corresponding result in the making
if (searchesEmptyLine) {
currentResult.text = currentResult.text + " " + line