quarto-dev / quarto-dev/quarto

Reopen preview without restarting server

Open
#371 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

The current preview experience feels a bit rough around the edges:

  • If I close the preview terminal the preview pane stays open pointing to an inexistent server.
  • If I close the preview pane the server at the terminal keeps running but...
    • if I then open preview again a new server is launched

The first point may be okeyish. But I believe the second one needs improvement. Closing and opening preview panes is a common operation since the pane uses screen real estate. That the server stays running is a red herring that makes one believe that a new panel will just reconnect to it. Relaunching the server is pointless and a bit slow, also breaks any open connection from an external browser since the port is changed.

Perhaps an option to set the port that, when active, forces the preview pane to reconnect instead of launching a new server (I assume this is because the previous port was lost at that point).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by tracing how preview panes launch and track the preview server; done means reopening a pane reconnects to the existing server and preserves its port instead of launching another server.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.