Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 72f5e4c

Browse files
committed
Preview path compatibility for Git Bash terminal on Windows
1 parent 296494b commit 72f5e4c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 1.44.0 (Unreleased)
4+
5+
- Preview path compatibility for Git Bash terminal on Windows
6+
37
## 1.43.0 (Release on 29 September 2022)
48

59
- Remove automatic spelling configuration for Spell Right

src/providers/preview/preview.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ import {
4848
} from "./preview-env";
4949
import { MarkdownEngine } from "../../markdown/engine";
5050
import { shQuote, winShEscape } from "../../shared/strings";
51+
import { pathWithForwardSlashes } from "../../shared/path";
5152

5253
import {
5354
QuartoPreviewWebview,
@@ -391,7 +392,7 @@ class PreviewManager {
391392
const cmd: string[] = [
392393
this.quartoContext_.useCmd ? winShEscape(quarto) : shQuote(quarto),
393394
isShiny ? "serve" : "preview",
394-
shQuote(target.fsPath),
395+
shQuote(pathWithForwardSlashes(target.fsPath)),
395396
];
396397

397398
// extra args for normal docs

0 commit comments

Comments
 (0)