Skip to content

VSCode extension causes infinite loop with imported slides #2336

@RyotaUshio

Description

@RyotaUshio

Describe the bug

The VSCode extension causes infinite loops when dealing with imported slides, as shown in the video below.

Screen.Recording.2025-11-07.at.16.13.58.mov

Minimal reproduction

Steps to reproduce the behavior:

  1. Initialize a project with pnpm create slidev
  2. Install the VSCode extension, open the Slidev view to show preview
  3. Open slides.md and go to line 597 where pages/imported-slides.md is imported:
---
src: ./pages/imported-slides.md
hide: false
---
  1. When you put the cursor inside the frontmatter, the VSCode extension will make you jump to imported-slides.md in a new tab.
  2. Now go back to slides.md. You will see the infinite loop shown in the video.

Environment

  • Slidev version: 52.6.0
  • Browser: Not relevant
  • OS: macOS 15.5
  • VSCode: 1.105.1
  • VSCode extension: 51.4.0

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions