Skip to content

Commit 62412d1

Browse files
authored
Merge pull request #3228 from quarto-dev/code-server-4.8.x
Closes #3227
2 parents c813b93 + 6385f17 commit 62412d1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

news/changelog-1.2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@
152152
- Restart Jupyter kernel daemon if preview server is restarted.
153153
- Enable use of external preview servers for serving project output
154154
- Add `--no-serve` command line parameter to prevent serving altogether
155+
- Do not add trailing slash to VSCODE_PROXY_URI set by code-server
155156

156157
## Publishing
157158

@@ -224,3 +225,4 @@
224225
- When converting raw html tables to pdf, use all tables generated ([#2615](https://github.com/quarto-dev/quarto-cli/issues/2615))
225226
- Fix theorem (thm, def, ...) environments in all formats ([#2866](https://github.com/quarto-dev/quarto-cli/issues/2866))
226227
- Upgrade to deno 1.25.2, which should lead to a 2-3x speedup in quarto startup time and fix an issue with Fedora 37 ([#3012](https://github.com/quarto-dev/quarto-cli/issues/3012))
228+
- quarto preview: only prefix paths with `/` when needed ([#3183](https://github.com/quarto-dev/quarto-cli/issues/3183))

src/command/render/render-shared.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ export async function printBrowsePreviewMessage(
178178
info(`\nPreview server: ${previewURL(host, port, path = "")}`);
179179
info(`\nBrowse at ${url}`, { format: colors.green });
180180
} else if (isVSCodeTerminal() && isVSCodeServer()) {
181+
const sep = path.startsWith("/") ? "" : "/";
181182
const browseUrl = vsCodeServerProxyUri()!.replace("{{port}}", `${port}`) +
182-
"/" + path;
183+
sep + path;
183184
info(`\nBrowse at ${browseUrl}`, { format: colors.green });
184185
} else if (isJupyterHubServer()) {
185186
const httpReferrer = `${

0 commit comments

Comments
 (0)