From c94f7ee381355ede3173500655a9cd8ca600379a Mon Sep 17 00:00:00 2001 From: HACKESOFICE Date: Wed, 21 Jan 2026 19:14:13 +0530 Subject: [PATCH] Added Documents viewer plugin id to load pdf/excel/csv etc. files the Documents Viewer plugin/extension provides the view support for multiple types of documents like pdf, csv, xlsx, docs etc developed and maintained by user 1446 ( HACKESOFICE ). ## Problem > when user opens these files directly through file manager => open with Acode then Acode opens these files directly to the text editor, which is not useful as these files are binary files.## Reason> Acode at first ( startup ) loads only plugins which are listed in List / Arrary ( HEME_IDENTIFIERS ) then other plugins ( Documents viewer also ) are loaded after Successful app startup. so the file handlers are regestering after file load and user see's only bytes as text. ## Solution > Added The Documents Viewer plugin id ( Which is "documentsviewer" ) in HEME_IDENTIFIERS LIst / Array. ## Expected Workflow / behaviorUser > Clicks on Acode app => load all plugins with the id avilable in HEME_IDENTIFIERS ( Now Documents Viewer Also ) => then Load Files. ## Why It'll Work > Because of Acode will now load the plugin ( if avilable ) at startup so all the file handlers will be registered before loading/opening the particular files. --- src/lib/loadPlugins.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/loadPlugins.js b/src/lib/loadPlugins.js index 482909c8b..b8fd6fc1a 100644 --- a/src/lib/loadPlugins.js +++ b/src/lib/loadPlugins.js @@ -22,6 +22,7 @@ const THEME_IDENTIFIERS = new Set([ "moonlight", "bluloco", "acode.plugin.extra_syntax_highlights", + "documentsviewer", ]); export const onPluginLoadCallback = Symbol("onPluginLoadCallback");