我在 docker 容器中有 vscode-server,通过反向代理暴露在互联网上,安装了 LatexWorkshop 和 texlive。
一切似乎都还好,但是我在选项卡中看不到pdf预览,有pdf查看器,但里面什么都没有,。如果我去获取文件,pdf是正常生成的。
在 LatexWorkshop 日志中,有这些行:
[Commander] VIEW command invoked with mode: tab.
[Manager] Current workspace folders: ["file://%WS1%","file://%WS2%"]
[Manager] Found root file from active editor: %WS2%/aaa.tex
[Manager] Keep using the same root file: %WS2%/aaa.tex
[Structure] Structure updated with 0 root sections for %WS2%/aaa.tex .
[Viewer][Panel] Internal PDF viewer at https://example.com/proxy/40451/viewer.html?file=pdf..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx .
[Cacher][Watcher] Watched %WS2%/aaa.pdf .
[Viewer] Open PDF tab for file://%WS2%/aaa.pdf
[Viewer] Handle data type: open
如果我点击
file://%WS2%/aaa.pdf
地址,,不同于之前你至少可以看到pdf查看器的地方。
如果我点击
https://example.com/proxy/40451/.....
地址,它会正确显示。
所以我的选项卡预览有问题,在 Firefox 和 Chrome 上也有同样的问题。
你碰巧知道为什么吗?
谢谢