The navigation menu distinguishes between files and folders

When I right-click on the navigated file instead of the folder, the options of new file and new folder still appear in the menu,How can I remove them?

I try to get the resource URI and use the fileService to determine whether it is a folder, but it seems that an asynchronous method can be received here

@helloworld thank you for the discussion, Mark was kind enough to provide a fix by modifying the when clause controlling the menu:

1 Like

okay,thank you