mirror of
https://github.com/James-Yu/LaTeX-Workshop.git
synced 2024-10-04 15:17:59 +03:00
Further fix relative path detection
This commit is contained in:
parent
c3c11c555d
commit
06d58f442f
@ -115,7 +115,7 @@ async function onClientMessage(msg) {
|
||||
let pos = new vscode.Position(row, col);
|
||||
|
||||
let file = record["input"].replace(/(\r\n|\n|\r)/gm, "");
|
||||
if (file.charAt(0) != '/')
|
||||
if (file.charAt(0) != '/' && file.indexOf(':\\') < 0)
|
||||
file = path.join(path.dirname(latex_data.main_document), file);
|
||||
file = file.replace(/(\/|\\).(\/|\\)/gm, "\/");
|
||||
let doc = await vscode.workspace.openTextDocument(file);
|
||||
|
Loading…
Reference in New Issue
Block a user