From d4ae1535ba35cc17efd0d2c35b72c160f274a6b7 Mon Sep 17 00:00:00 2001 From: Wei Wu Date: Tue, 26 Nov 2024 13:22:34 +0800 Subject: [PATCH] fix: use vscode.open to open file --- .../components/ContentNavigator/ContentDataProvider.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/src/components/ContentNavigator/ContentDataProvider.ts b/client/src/components/ContentNavigator/ContentDataProvider.ts index f6c1afe97..66bc3f6ca 100644 --- a/client/src/components/ContentNavigator/ContentDataProvider.ts +++ b/client/src/components/ContentNavigator/ContentDataProvider.ts @@ -301,18 +301,14 @@ class ContentDataProvider const oldUriToNewUriMap = [[item.vscUri, newUri]]; const newItemIsContainer = getIsContainer(newItem); if (closing !== true && !newItemIsContainer) { - await commands.executeCommand("vscode.openWith", newUri, "default", { - preview: false, - }); + await commands.executeCommand("vscode.open", newUri); } if (closing !== true && newItemIsContainer) { const urisToOpen = getPreviouslyOpenedChildItems( await this.getChildren(newItem), ); for (const [, newUri] of urisToOpen) { - await commands.executeCommand("vscode.openWith", newUri, "default", { - preview: false, - }); + await commands.executeCommand("vscode.open", newUri); } oldUriToNewUriMap.push(...urisToOpen); }