From 6bb10da5a7a8123835838704a07549ea7a0e2644 Mon Sep 17 00:00:00 2001 From: dudu Date: Sat, 25 Nov 2023 09:07:02 +0800 Subject: [PATCH] fix: workspace path check in post-pull-all --- src/cmd/post-list/post-pull-all.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/post-list/post-pull-all.ts b/src/cmd/post-list/post-pull-all.ts index f88963ca..0d93796d 100644 --- a/src/cmd/post-list/post-pull-all.ts +++ b/src/cmd/post-list/post-pull-all.ts @@ -71,7 +71,7 @@ export async function postPullAll() { if ( path === undefined || !(await fsUtil.exists(path)) || - path.indexOf(WorkspaceCfg.getWorkspaceUri().path) < 0 + path.indexOf(WorkspaceCfg.getWorkspaceUri().fsPath) < 0 ) { const uri = buildLocalPostFileUri(post, false) const buf = Buffer.from(post.postBody)