Skip to content

Commit 43c585e

Browse files
authored
Merge pull request #238 from cnblogs/fix-workspace-path-check
fix: workspace path check
2 parents 4b45751 + 69c57c6 commit 43c585e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/post-list/post-pull.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export async function postPull(input: Post | PostTreeItem | Uri | undefined | nu
2121
if (
2222
path === undefined ||
2323
!(await fsUtil.exists(path)) ||
24-
path.indexOf(WorkspaceCfg.getWorkspaceUri().path) < 0
24+
path.indexOf(WorkspaceCfg.getWorkspaceUri().fsPath) < 0
2525
) {
2626
isFreshPull = true
2727
const uri = buildLocalPostFileUri(post, false)

0 commit comments

Comments
 (0)