Closed Jeff-Walker closed 1 year ago
What do you mean by "custom handlers" for preview? What do you have in mind? Would you want me to implement some kind of API?
Just an external command? Have a list of file extension to a command. So I'd put in ... /idea.exe or whatever to extract and open the app. Not sure how vs code handles filetype editors, but in most cases there's an api. Is so maybe use that.
On Mon, Sep 18, 2023, 1:18 PM AdamRaichu @.***> wrote:
What do you mean by "custom handlers" for preview? What do you have in mind? Would you want me to implement some kind of API?
— Reply to this email directly, view it on GitHub https://github.com/AdamRaichu/vscode-zip-viewer/issues/76#issuecomment-1724140386, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMQSBWVT4QVDNBHG2YTNITX3CF7DANCNFSM6AAAAAA45DKDXQ . You are receiving this because you authored the thread.Message ID: @.***>
A couple things come to mind after reading that.
Here are a couple solutions/alternatives which would do something similar to what you want:
.class
files in vscode if I had a JavaScript library which could decompile them. If you know of or could find such a library I could implement that.Not sure how vs code handles filetype editors, but in most cases there's an api.
The method vscode uses for custom editors is based on file path (name and location in folders). However, that requires having the actual file outside of the zip file, and so is outside the scope of this particular extension. However, see point 2 under solutions above; I would happy to make another extension if I had a library for it.
All of that said, I'm closing as wontfix
because it is out of scope for this extension. (In the same way, I didn't have this extension display PDF files because you can simply selectively extract them and view with another extension.)
While I'm sorry to give a negative response, I do appreciate the feedback! Please continue to let me know if there are features you would like, or if you find any problems.
Please add support for
.class
files to the editor preview.I use Intellij IDEA to open class files, but not everyone would, so add support for custom apps.
Generated by
adamraichu.zip-viewer