Fix reveal folder function

This commit is contained in:
Paul 2026-06-01 18:33:44 +02:00
parent b41cc7641d
commit 32ce9f55ed

View file

@ -255,7 +255,8 @@ export default class FolderNotesPlugin extends Plugin {
if (fileExplorerPlugin) {
const fileExplorer = fileExplorerPlugin as unknown as FileExplorerPluginLike;
const originalRevealInFolder =
fileExplorer.revealInFolder as unknown as FileExplorerPluginLike['revealInFolder'];
(fileExplorer.revealInFolder as unknown as FileExplorerPluginLike['revealInFolder'])
.bind(fileExplorer);
fileExplorer.revealInFolder = (file: TAbstractFile): void => {
if (file instanceof TFile) {
const folder = getFolder(this, file);