New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use customEditor api #3069
Use customEditor api #3069
Conversation
Rejected. Not convinced.
The feature of opening the same pdf multiple times is what we want. |
See
|
This degeneration is unfortunately not acceptable w.r.t. LW in my opinion. A neat feature to LaTeX users is to single click on the |
Agree. I re-implemented the different opening locations on the master branch of my fork https://github.com/ManuelHentschel/LaTeX-Workshop. Unfortunately, the vscode api does not fully support opening (non-text?) documents in most of the locations that can be specified in the LW settings (and also not without taking focus), but the procedure currently used here also works when using the custom editor api. Since I originally opened this PR, lots of things have changed, leading to lots of merge conflicts, so I did not update this branch. However, let me know if you want me to open a new PR with this modification. Also, feel free to point out/fix any problems due to my unfamiliarity with the code base. |
Welcome a new PR/PRs! Thanks 😃 |
This PR modifies the methods
openPdfInTab
etc. to open pdfs using vscode's CustomEditor api. Previously, this api was only used to show'LaTeX Workshop PDF Viewer is opening a PDF file...'
and then opening a separately managed webview. Advantages of showing pdfs as custom editors include:del
to delete it.I've tested this on windows 10 and ubuntu 18.04 using WSL. The only disadvantage I'm aware of is
open to the side
.