Open quoc-ho opened 1 week ago
Awesome! Great contribution @quoc-ho . Let's wait for review.
The following functionalities have been implemented on guests (on the host, everything is the same as before):
Here, * means doesn't work when the guest is on a Windows computer. This is because on Windows, getPdfPath
always returns smth with c:\
at the beginning, which does not make sense. For guests, the input will be something like vsls:/file.tex
regardless of the system. I only have limited access to a Windows computer so at least for now, I cannot really troubleshoot this. For now, Windows users can double click on the pdf file to open it instead. Forward synctex is still a problem.
Build command cannot be triggered from the guest yet (but it's not hard to implement). For now, the host can just turn on build on save.
Notes on the implementation
vscode.Uri.file
was used, which has file
scheme and which doesn't work on the guest side since the appropriate scheme there should be vsls
. I implemented fileUriFromPath
in file.ts
which handles schemes more appropriately.
b. Previously, there were many checks .scheme === 'file'
. I implemented isAcceptedScheme
which allows vsls
as well and replaced the checks by using this function.
Continue the discussion https://github.com/James-Yu/LaTeX-Workshop/discussions/4305#discussioncomment-9927467.