Skip to content

Commit 9ff3caa

Browse files
authored
fix: use vscode.open to open file (#1297)
1 parent dcabaa1 commit 9ff3caa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

client/src/components/ContentNavigator/ContentDataProvider.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,18 +301,14 @@ class ContentDataProvider
301301
const oldUriToNewUriMap = [[item.vscUri, newUri]];
302302
const newItemIsContainer = getIsContainer(newItem);
303303
if (closing !== true && !newItemIsContainer) {
304-
await commands.executeCommand("vscode.openWith", newUri, "default", {
305-
preview: false,
306-
});
304+
await commands.executeCommand("vscode.open", newUri);
307305
}
308306
if (closing !== true && newItemIsContainer) {
309307
const urisToOpen = getPreviouslyOpenedChildItems(
310308
await this.getChildren(newItem),
311309
);
312310
for (const [, newUri] of urisToOpen) {
313-
await commands.executeCommand("vscode.openWith", newUri, "default", {
314-
preview: false,
315-
});
311+
await commands.executeCommand("vscode.open", newUri);
316312
}
317313
oldUriToNewUriMap.push(...urisToOpen);
318314
}

0 commit comments

Comments
 (0)