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

Commit 5cdf0af

Browse files
committed
Revert "don't include full path for preview file when running on WSL"
This reverts commit e57bc61.
1 parent 12d4fff commit 5cdf0af

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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.53.0 (Release on 27 October 2022)
4+
5+
- Once again use full path in WSL (previous change wasn't effective)
6+
37
## 1.52.0 (Release on 26 October 2022)
48

59
- Don't include full path for preview file when running on WSL

src/providers/preview/preview.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,6 @@ class PreviewManager {
401401
);
402402
}
403403

404-
// are we running in wsl?
405-
const isWsl = vscode.env.remoteName === "wsl";
406-
407404
// is this is a shiny doc?
408405
const isShiny = await isQuartoShinyDoc(this.engine_, doc);
409406

@@ -420,8 +417,6 @@ class PreviewManager {
420417
shQuote(
421418
this.quartoContext_.useCmd
422419
? target.fsPath
423-
: isWsl
424-
? path.basename(target.fsPath)
425420
: pathWithForwardSlashes(target.fsPath)
426421
),
427422
];

0 commit comments

Comments
 (0)