Skip to content

fix(vscode): fix line number decorations, upgrade reactive-vscode#2418

Merged
antfu merged 2 commits into
slidevjs:mainfrom
kermanx:upgrade-reactive-vscode
Jan 7, 2026
Merged

fix(vscode): fix line number decorations, upgrade reactive-vscode#2418
antfu merged 2 commits into
slidevjs:mainfrom
kermanx:upgrade-reactive-vscode

Conversation

@kermanx

@kermanx kermanx commented Dec 26, 2025

Copy link
Copy Markdown
Member

reactive-vscode v1.0.0-beta.1 was released with a lot of improvements (especially defineConfig) and breaking changes.

@netlify

netlify Bot commented Dec 26, 2025

Copy link
Copy Markdown

Deploy Preview for slidev failed.

Name Link
🔨 Latest commit 49f9624
🔍 Latest deploy log https://app.netlify.com/projects/slidev/deploys/6950d2acbd2b71000820e7d4

@pkg-pr-new

pkg-pr-new Bot commented Dec 26, 2025

Copy link
Copy Markdown

Open in StackBlitz

@slidev/client

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/client@2418

create-slidev

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev@2418

create-slidev-theme

npm i https://pkg.pr.new/slidevjs/slidev/create-slidev-theme@2418

@slidev/parser

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/parser@2418

@slidev/cli

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/cli@2418

@slidev/types

npm i https://pkg.pr.new/slidevjs/slidev/@slidev/types@2418

commit: 49f9624

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the reactive-vscode library from v0.4.1 to v1.0.0-beta.1, adapting to breaking changes in the new version. The upgrade primarily affects the configuration system and various API functions, requiring updates across multiple files.

  • Migrated from defineConfigs to defineConfig with a new access pattern for configuration values
  • Updated several reactive-vscode API functions (e.g., useLoggerdefineLogger, useFsWatcheruseFileSystemWatcher, forceRefreshforceReload)
  • Refactored terminal management in dev server to use manual creation instead of useControlledTerminal

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pnpm-workspace.yaml Updates reactive-vscode version specification in catalog from ^0.4.1 to ^1.0.0-beta.1
pnpm-lock.yaml Updates lockfile with new reactive-vscode version, dependencies, and removes libc constraints from various platform-specific packages
packages/vscode/src/configs.ts Completely refactors config system from defineConfigs to defineConfig with typed interface
packages/vscode/src/views/logger.ts Updates logger initialization from useLogger to defineLogger
packages/vscode/src/views/slidesTree.ts Removes useViewVisibility in favor of accessing treeView.visible.value directly
packages/vscode/src/views/previewWebview.ts Updates config access pattern and renames forceRefresh to forceReload
packages/vscode/src/views/annotations.ts Simplifies by removing debounced line number updates and using direct config access
packages/vscode/src/projects.ts Migrates from useFsWatcher to useFileSystemWatcher with new callback-based API
packages/vscode/src/composables/useServerDetector.ts Updates config access to use new pattern
packages/vscode/src/composables/useFocusedSlide.ts Adds defensive null check for selection value
packages/vscode/src/composables/useDevServer.ts Replaces useControlledTerminal with manual terminal creation and updates path helper from useAbsolutePath to useAbsoluteUri
packages/vscode/src/commands.ts Updates all config access and update calls to use new API pattern
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/vscode/src/commands.ts Outdated
Comment thread packages/vscode/src/views/previewWebview.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@antfu
antfu merged commit aef781c into slidevjs:main Jan 7, 2026
16 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants