We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ec5ac commit 41410feCopy full SHA for 41410fe
src/commandsAndMenu.tsx
@@ -916,7 +916,11 @@ export function addFileBrowserContextMenu(
916
addMenuItems(
917
commandsList,
918
this,
919
- paths.map(path => model.getFile(path))
+ paths
920
+ .map(path => model.getFile(path))
921
+ // if file cannot be resolved (has no action available),
922
+ // omit the undefined result
923
+ .filter(file => typeof file !== 'undefined')
924
);
925
if (wasShown) {
926
// show he menu again after downtime for refresh
0 commit comments