Skip to content

Commit 4f5af7c

Browse files
committed
Add tilde expansion to paths on Linux platforms
1 parent ba0c734 commit 4f5af7c

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to the "prettier-vscode" extension will be documented in thi
44

55
<!-- Check [Keep a Changelog](https://keepachangelog.com/) for recommendations on how to structure this file. -->
66

7+
## [Unreleased]
8+
9+
- Add tilde expansion to paths on Linux platforms
10+
711
## [11.0.0]
812

913
- [BREAKING CHANGE] Prevent `.editorconfig` from satisfying the `requireConfig` setting (#2708) - Thanks to [@redoPop](https://github.com/redoPop)

src/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function getWorkspaceRelativePath(
1010
) {
1111
// In case the user wants to use ~/.prettierrc on Mac
1212
if (
13-
process.platform === "darwin" &&
13+
(process.platform === "darwin" || process.platform === "linux") &&
1414
pathToResolve.indexOf("~") === 0 &&
1515
os.homedir()
1616
) {

0 commit comments

Comments
 (0)