Skip to content

Commit 6f7ae29

Browse files
authored
Merge pull request #3728 from cdr/jsjoeio-fix-open-folder-explorer-panel
fix: openFolder button on Explorer panel
2 parents 102f811 + 990414c commit 6f7ae29

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,15 @@ viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
303303
order: 1
304304
});
305305

306+
// NOTE@coder:
307+
// We use OpenFolderAction.ID instead of commandId
308+
// because for some reason, the command openFileFolder
309+
// does not work as expected and causes the "Open Folder"
310+
// command to not work
311+
// See: https://github.com/cdr/code-server/issues/3457
306312
viewsRegistry.registerViewWelcomeContent(EmptyView.ID, {
307313
content: localize({ key: 'noFolderHelp', comment: ['Please do not translate the word "commmand", it is part of our internal syntax which must not change'] },
308-
"You have not yet opened a folder.\n[Open Folder](command:{0})", commandId),
314+
"You have not yet opened a folder.\n[Open Folder](command:{0})", OpenFolderAction.ID),
309315
when: ContextKeyExpr.or(ContextKeyExpr.and(WorkbenchStateContext.notEqualsTo('workspace'), RemoteNameContext.isEqualTo('')), ContextKeyExpr.and(WorkbenchStateContext.notEqualsTo('workspace'), IsWebContext)),
310316
group: ViewContentGroups.Open,
311317
order: 1

0 commit comments

Comments
 (0)