Releases: mathematic-inc/vscode-pdf
v0.1.11
vscode-pdf v0.1.11
Say goodbye to viewer initialization errors! This release ships an updated PDF.js engine that squashes a stubborn bug (#32) where the viewer could fail to initialize, leaving you staring at a blank panel instead of your PDF. If you've ever had a PDF stubbornly refuse to open, this one's for you — PDF viewing is now more reliable than ever.
🐛 Bug Fixes
- Fixed viewer initialization errors — Updated the bundled PDF.js library (now on v4.10.38) to resolve an issue where the viewer could fail to initialize when opening PDF files (#32, #37). No more blank panels, no more silent failures — your PDFs just open.
Installation
Grab it straight from the Visual Studio Code Marketplace — just search for "PDF Viewer" in the Extensions view (Ctrl+Shift+X / Cmd+Shift+X) and hit install. Also available on the Open VSX Registry for VS Code-compatible editors.
v0.1.10
vscode-pdf v0.1.10
This release squashes a sneaky reliability bug that was preventing PDFs from opening correctly — if you've ever stared at a blank viewer or an ugly error screen instead of your document, this one's for you. v0.1.10 makes the PDF viewing experience noticeably more robust by cleaning up fragile internal state tracking that was getting in its own way.
🐛 Bug Fixes
- Fixed PDF open failures caused by error overlay and load-state tracking — the viewer previously maintained a
loadedflag to decide whether to replace the webview with a crash screen on errors. In practice this flag could be set too late (or not at all), causing legitimate PDF loads to be intercepted and swapped out with an error message. The overlay and the flag have been removed entirely: the viewer now stays out of its own way and errors are reported cleanly to the console instead of nuking your document. Closes #32.
📦 Installation
Install directly from the Visual Studio Code Marketplace or the Open VSX Registry. You can also search for "PDF Viewer" in the Extensions view (Ctrl+Shift+X / Cmd+Shift+X) inside VS Code and update to the latest version from there.
v0.1.9
vscode-pdf v0.1.9
v0.1.9 is a focused stability release that squashes a sneaky crash that could make every single PDF appear to fail on load in certain environments — not because the PDF was broken, but because of a subtle race in our initialization sequence. If you ever saw a blank or broken viewer where a perfectly valid PDF should have rendered, this is the fix you've been waiting for.
🐛 Bug Fixes
-
Fixed overlay manager crash on load (#33, fixes #32)
The
loadedflag was previously set only afterpdfViewer.pagesPromiseresolved. In the window betweenopen()completing and the pages promise settling, post-open initialization steps (such as auto-print detection in some PDFs) could callwindow.print(), which internally callsensureOverlay(). In certain VS Code environments this threw"The overlay manager has not yet been initialized."— and sinceloadedwas stillfalseat that point, the error handler replaced the entire viewer body, making the PDF look like it failed to load.The fix moves
loaded = trueto immediately afteropen()completes. The PDF is successfully opening at that point; any errors during subsequent page rendering are non-fatal and handled gracefully, consistent with the original intent of the flag.
Installation
Grab it directly from the Visual Studio Code Marketplace or the Open VSX Registry. You can also search for "PDF Viewer" in the Extensions view (Ctrl+Shift+X / Cmd+Shift+X) inside VS Code — updates install automatically.
v0.1.8
vscode-pdf v0.1.8
v0.1.8 is a quality-of-life release that puts you in control of how PDFs open — choose your default zoom level, decide whether the sidebar appears, and enjoy a smoother experience now that Ctrl+P stays where it belongs (in VS Code, not the print dialog). Plus, a long-standing crash when dragging text is finally gone. Small changes, big difference!
✨ New Features
-
Configurable default zoom — Set
pdf.defaultZoomValuein your VS Code settings to open PDFs at your preferred zoom level (e.g."page-width","page-fit","150", or"auto"). No more zooming in every time you open a document. (Closes #11, #22) -
Configurable sidebar on load — Use
pdf.sidebarViewOnLoadto control whether the PDF sidebar (thumbnails, bookmarks, etc.) is shown when a file is opened. Set it to0to keep things clean, or another value to have the sidebar ready to go.
🐛 Bug Fixes
-
Ctrl+P / Cmd+P now opens the VS Code Command Palette — Previously, PDF.js was intercepting the print shortcut and popping up a print dialog. That's squashed. Your muscle memory is safe. (Closes #13)
-
No more crash on text drag — Dragging text inside a PDF was triggering the error screen even though nothing had actually gone wrong. The error handler now correctly distinguishes load-time failures from harmless post-load events. (Closes #21)
📦 Installation
Grab it from the Visual Studio Code Marketplace, or search for "PDF Viewer" in the Extensions panel (Ctrl+Shift+X / Cmd+Shift+X) inside VS Code. Also available on the Open VSX Registry.
v0.1.7
v0.1.7 is a significant under-the-hood overhaul that modernizes the entire project foundation — making the extension faster to build, easier to contribute to, and better positioned for future improvements. While you won't notice the changes from inside VS Code (that's the point!), this release represents a thorough spring-cleaning of the toolchain, CI/CD pipeline, and project structure that sets the stage for everything to come.
⚡ Improvements
- Build system migrated from webpack to tsup — faster, simpler, and zero-config bundling that gets out of the way.
- Package manager migrated from npm to pnpm — faster installs, strict dependency isolation, and a leaner lockfile.
- Linting and formatting powered by Biome — a blazing-fast, all-in-one toolchain replacing a patchwork of separate tools.
- Git hooks via Lefthook — consistent code quality enforced at commit time.
- Source files renamed to kebab-case — aligns with modern TypeScript and Node.js conventions (
pdf_document.ts→pdf-document.ts, etc.). - CI/CD workflows overhauled — cleaner, more reliable pipelines for continuous integration, release management, and publishing.
- VS Code engine requirement bumped to v1.110.0 — ensuring access to the latest extension APIs.
- Updated PDF.js viewer assets — picks up the latest upstream improvements from Mozilla's PDF.js.
🐛 Bug Fixes
- Fixed VSIX publishing in CI (#28) — the release pipeline now correctly resolves the VSIX file path before publishing to the VS Marketplace and Open VSX, preventing a potential publish failure on release.
📦 Installation
Grab it directly from the Visual Studio Code Marketplace or the Open VSX Registry.
You can also search for "PDF Viewer" in the Extensions view (Ctrl+Shift+X / Cmd+Shift+X) inside VS Code and install it in one click.