tjx666 / open-in-external-app

Open file with external application in VSCode
https://marketplace.visualstudio.com/items?itemName=YuTengjing.open-in-external-app
MIT License
57 stars 10 forks source link

Cant' open epub file for NeatReader #65

Open fssdfhsdfsdk opened 4 months ago

fssdfhsdfsdk commented 4 months ago

Description

Cant' open epbu file for NeatReader, no error report, nothing happened

Extension Version

0.10.0

VS Code Version

Version: 1.83.1 (user setup) Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc Date: 2023-10-10T23:48:05.904Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19043

Extension Settings

    {
      "extensionName": "epub",
      "apps": [
        {
            "title": "Neat", 
            "openCommand": "C:\\Program Files (x86)\\NeatReader\\NeatReader.exe",
            "args": [
              "${file}"
            ]
        }
      ]
    },

Logs, Notifications, Screenshots, Screen Recording etc

...

fssdfhsdfsdk commented 4 months ago

I have solved by this config, also need set NeatReader for default for epub:

This is a error config,but can open, why? side-effect: only can open lang=en path name file, cant open lang=zh path name file.

"[1].apps[0].args[1]" is not allowed to be empty
Your extension configuration format isn't correct!
        {
          "extensionName": "epub",
          // apps can be Object array or just the command you can access from shell
          "apps": [
            {
                "title": "Neat", 
                "openCommand": "C:\\Program Files (x86)\\NeatReader\\NeatReader.exe",
                "args": [
                  "${file}",
                  ""
                ]
            }
          ]
        },