Skip to content

Releases: mathematic-inc/vscode-pdf

v0.1.11

13 Mar 03:37
78cb204

Choose a tag to compare

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

12 Mar 10:16
250c9d8

Choose a tag to compare

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 loaded flag 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

11 Mar 20:02
c1a767b

Choose a tag to compare

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 loaded flag was previously set only after pdfViewer.pagesPromise resolved. In the window between open() completing and the pages promise settling, post-open initialization steps (such as auto-print detection in some PDFs) could call window.print(), which internally calls ensureOverlay(). In certain VS Code environments this threw "The overlay manager has not yet been initialized." — and since loaded was still false at that point, the error handler replaced the entire viewer body, making the PDF look like it failed to load.

    The fix moves loaded = true to immediately after open() 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

11 Mar 05:08
d20b787

Choose a tag to compare

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.defaultZoomValue in 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.sidebarViewOnLoad to control whether the PDF sidebar (thumbnails, bookmarks, etc.) is shown when a file is opened. Set it to 0 to 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

11 Mar 01:26
c31e64d

Choose a tag to compare

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.tspdf-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.

v0.1.6

06 Sep 05:09

Choose a tag to compare

0.1.6 (2025-04-16)

Features

  • Add support for opening relative links to other PDFs (#9) (0dd02b7)

v0.1.5

02 Feb 13:36
3c295ac

Choose a tag to compare

0.1.5 (2025-02-02)

Bug Fixes

v0.1.4

28 Jan 11:04
47a6fd0

Choose a tag to compare

0.1.4 (2025-01-28)

Bug Fixes

  • Add better error handling (0fa5989)

v0.1.3

28 Jan 10:36
ae3febf

Choose a tag to compare

0.1.3 (2025-01-28)

Bug Fixes

  • thumbnails: Adapt csp to fix thumbnails (7a773f5)
  • thumbnails: Adapt csp to fix thumbnails (#3) (a847b6c)

v0.1.2

12 Jan 08:10
36d4751

Choose a tag to compare

0.1.2 (2025-01-12)

Bug Fixes