mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 07:07:54 +03:00
Fix #245 Log parser file resolve from root instead of stack
This commit is contained in:
parent
e40100ac46
commit
0323cb7f8f
@ -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.
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user