Dev.to WebDev 🛠 Dev 👁 2 📖 4 min read

VS Code 1.149: PDFs Inside the Editor, and a Rust-Powered Rendering Rewrite

VS Code 1.149 shipped as a stable release on December 2, 2026. After a year in which most VS Code releases were defined by agent orchestration, this one turns back to the editor itself: how fast it draws, how fast it hig

VS Code 1.149 shipped as a stable release on December 2, 2026. After a year in which most VS Code releases were defined by agent orchestration, this one turns back to the editor itself: how fast it draws, how fast it highlights, and — quietly the biggest workflow change — the fact that PDFs now open right inside the editor.

Source: the official release notes at https://code.visualstudio.com/updates/v1_149

PDFs open in the editor now

Until now, opening a PDF in VS Code gave you a "binary file" message. In 1.149, PDFs open in a read-only preview built on PDF.js — the same engine behind Firefox's viewer — on desktop and in VS Code for the Web.

It is a real reader, not a placeholder: Ctrl+F searches with matches highlighted and counted, Ctrl+G jumps to a page, Ctrl+Shift+O opens the document outline, you can zoom, select and copy text, and follow links. If you already have a PDF extension installed, it still takes precedence.

The read-only part matters. This is for reading specs, API docs, and papers next to the code they describe — not for editing. I spend most of my day in VS Code and use ViewAny there for heavier PDF and docx work, but having a built-in preview for a quick read without leaving the editor closes a gap that used to force a context switch for every document.

Syntax highlighting gets a WebAssembly rewrite

The second headline is under the hood. Enable editor.textMateWebAssembly (then Developer: Reload Window) and syntax highlighting switches to a WebAssembly build of vscode-textmate, compiled from a new Rust port.

Microsoft's numbers: tokenizing runs two to three times faster for most languages — Rust 3.1x, TypeScript 2.7x, JavaScript 2.6x (9.0 seconds down to 3.5 for a 201,040-line file) — and uses about half the memory to track each line. The colors are identical; most of the gain comes from changes to Oniguruma, the regex library TextMate grammars use, which speed up searches without changing results.

The honest caveat, as always with vendor benchmarks: these are measured on specific test corpora. Worth trying on your heaviest workspace before recommending it team-wide, since the setting applies to every language in the window.

GPU-accelerated rendering

The companion experiment is editor.experimentalGpuAcceleration. Also written in Rust and compiled to WebAssembly, it paints editor frames with the GPU instead of pushing thousands of DOM nodes around.

For ordinary files, Microsoft says don't expect it to feel different — both renderers scrolled at 120 fps in their tests. The difference is how much work each frame costs: 27% less CPU time per frame on an ordinary file, 57% less on files with long lines and word wrap off. In a dense editor dragged by the scrollbar, DOM rendering dropped to 68 fps while the GPU renderer held 115; with the main thread slowed four times to simulate a slower machine, it was 114 vs 43. If the renderer fails in a window, the editor falls back to DOM rendering until reload.

Both of these are explicitly experimental and off by default. That is the pattern Microsoft has used for its bigger under-the-hood rewrites: ship behind a flag for a release or two, then default it on. If you work in very large files or on a high-refresh display, these are the two settings to try first.

The rest of the release

  • Model routers get a real UI. Since 1.147 you could route chats to different models per task, but only by writing YAML. Now there is a form-based editor (Chat: Manage Language Models → Model Routers tab), and you can inspect why a router picked a route — the routes offered, the scores, and the decision time.
  • Dev Containers get friendlier for agents. Container agent sessions can now reuse your Git credentials and SSH/GPG agents, so agents can push and sign commits without signing in again. On Windows, WSL containers (wslc, needs WSL 2.9.3+) are an experimental alternative to Docker.
  • Secret detection in security reviews. Running /security-review can now also flag unstructured credentials like passwords, using GitHub's secret detection model. It is a preview, off by default, and consumes AI credits.

Why this release is worth attention

The interesting thing about 1.149 is the direction of travel. The last year of VS Code releases was about agents doing more — driving browsers, running in containers, reviewing code. This release is about the editor doing its own job better: faster drawing, faster highlighting, documents readable where the code lives.

That is a bet that the editor remains the center of gravity, not just a host for agents. The PDF preview is the clearest signal: Microsoft wants the reading to happen where the work happens, and it is willing to build a reader rather than leave it to extensions. If the performance experiments graduate to defaults in the next release or two, the everyday feel of the editor — scrolling a 200,000-line file, dragging through a dense diff — changes more than any single agent feature did this year.

One open question: the WASM highlighter and GPU renderer are both opt-in experiments with vendor-measured numbers. Has anyone tried them on a real monorepo yet — and did the gains hold up outside Microsoft's test files?

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.