Adding back open file/folder for web

This commit is contained in:
Harald Kirschner 2021-08-24 17:30:39 -07:00
parent 86cc505c2f
commit 2372886617

View file

@ -91,7 +91,7 @@ export const startEntries: GettingStartedStartEntryContent = [
title: localize('gettingStarted.openFile.title', "Open File..."),
description: localize('gettingStarted.openFile.description', "Open a file to start working"),
icon: Codicon.goToFile,
when: '!isWeb && !isMac',
when: 'isWeb || !isMac',
content: {
type: 'startEntry',
command: 'workbench.action.files.openFile',
@ -108,6 +108,17 @@ export const startEntries: GettingStartedStartEntryContent = [
command: 'workbench.action.files.openFolder',
}
},
{
id: 'topLevelOpenFolderWeb',
title: localize('gettingStarted.openFolder.title', "Open Folder..."),
description: localize('gettingStarted.openFolder.description', "Open a folder to start working"),
icon: Codicon.folderOpened,
when: 'isWeb',
content: {
type: 'startEntry',
command: 'workbench.action.addRootFolder',
}
},
{
id: 'topLevelCommandPalette',
title: localize('gettingStarted.topLevelCommandPalette.title', "Run a Command..."),