egomobile / vscode-powertools

A swiss army knife with lots of tools, extensions and (scriptable) enhancements for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=egomobile.vscode-powertools
GNU Lesser General Public License v3.0
68 stars 9 forks source link

how does it actually works ? #9

Closed ctf0 closed 1 year ago

ctf0 commented 1 year ago

i've followed the example of https://github.com/egomobile/vscode-powertools/wiki/Buttons but nothing works

Version: 1.74.0-insider
Commit: 3fb8e8feb1c93a490feb2c2259713d4c8f0e0058
Date: 2022-11-14T10:15:39.203Z
Electron: 19.1.3
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: Yes
mkloubert commented 1 year ago

@ctf0 for me the first example works fine

can you give a detailed and exact example, what you did from your side?

ctf0 commented 1 year ago
  1. i created an exact copy of the example
  2. the btn was added to the status bar
  3. clicking the btn doesnt fire the information msg

maybe it have to do with the insiders version am using, am not sure, if there is a way to debug this, plz tell me.

mkloubert commented 1 year ago

@ctf0

how does your settings look like and where is the JS file stored?

ctf0 commented 1 year ago

async function refreshProjects(vscode) { await vscode.commands.executeCommand('projectManager.refreshProjects')

vscode.window.showInformationMessage(
    'Project Manager: Refresh Projects'
);

}

ctf0 commented 1 year ago

also keep getting this in the output

Initializing extension ...

[xxx] Initializing workspace ...
Running shell command '' ... [FAILED: '[TypeError] 'The argument 'file' cannot be empty. Received '''']
[xxx] 🧾 startups.onstartup(1) :: The argument 'file' cannot be empty. Received ''
[xxx] Executed all startups.
[xxx] Workspace initialized.

Extension has been initialized.

Your network configuration:
================================
Hostname: xxx.local

Network interfaces:
    - ....

with settings of

"ego.power-tools": {
        "startup": [
            {
                "script": "startup.js"
            }
        ]
    },