Skip to content

Commit

Permalink
feat: make extension compatible with custom drives
Browse files Browse the repository at this point in the history
  • Loading branch information
ktaletsk committed Sep 6, 2024
1 parent 8990b48 commit e8440e9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,13 @@ function activateLatexPlugin(
return Promise.resolve(void 0);
}
pending = true;
return latexBuildRequest(texContext!.path, synctex, serverSettings)

/** Get the local file path without any drive prefix potentially added by
* other extensions like jupyter-collaboration
*/
const localPath = app.serviceManager.contents.localPath(texContext!.path);

return latexBuildRequest(localPath, synctex, serverSettings)
.then(() => {
// Read the pdf file contents from disk.
pdfContext ? pdfContext.revert() : findOpenOrRevealPDF();
Expand Down

0 comments on commit e8440e9

Please sign in to comment.