Skip to content

Commit c94f7ee

Browse files
authored
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.
1 parent c3754b2 commit c94f7ee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/loadPlugins.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const THEME_IDENTIFIERS = new Set([
2222
"moonlight",
2323
"bluloco",
2424
"acode.plugin.extra_syntax_highlights",
25+
"documentsviewer",
2526
]);
2627

2728
export const onPluginLoadCallback = Symbol("onPluginLoadCallback");

0 commit comments

Comments
 (0)