seunlanlege / vscode-action-buttons

VsCode extension for custom status bar buttons
90 stars 25 forks source link

Nothing happens? #4

Closed 3cees closed 6 years ago

3cees commented 6 years ago

Hi,

when I click ctl+shift+p and click "Refresh Action Buttons", npthing happens. No buttons show up. What can I do?

Many Thanks, Lars

seunlanlege commented 6 years ago

can i see your workspace settings?

3cees commented 6 years ago

{ "folders": [ { "path": "." }, { "path": "WpQrLogin" } ], "settings": {} }

3cees commented 6 years ago

How should it look like?

seunlanlege commented 6 years ago

Here's an example config for the extension.

{
     // ...other fields
    "run": {
     "defaultColor": "#ff0034", // Can also use string color names.
     "commands": [
         {
             "name": "Run Cargo", // Name of the action as you'll see it in the status bar
             "color": "green", // this overrides defaultColor
             "command": "cargo run", // This is executed in the terminal.
         },
         {
             "name": "Build Cargo",
             "color": "green",
             "command": "cargo build",
         }
     ]
    }
3cees commented 6 years ago

can you show me, how it has to like like in the settings file with my settings, I posted? Do I have to place it in: a) user settings b) Workspace settings, or c) ProjectName Settings? Sorry, I'm new to Vs Code. ;(

seunlanlege commented 6 years ago

replace your workspace settings with this.

{
  "folders":[
    {
      "path":"."
    },
    {
      "path":"WpQrLogin"
    }
  ],
  "settings":{

  },
  "run":{
    "defaultColor":"#ff0034",
    "commands":[
      {
        "name":"Run Cargo",
        "color":"green",
        "command":"cargo run"
      },
      {
        "name":"Build Cargo",
        "color":"green",
        "command":"cargo build"
      }
    ]
  }
}
3cees commented 6 years ago

I get an error then: Unknown Workspace configuration property and "run" is underlined. The buttons do not apear.

https://picload.org/view/daogdwol/gh.png.html

seunlanlege commented 6 years ago

disregard the warning, now refresh action buttons.

3cees commented 6 years ago

i did. nothing happens.

seunlanlege commented 6 years ago

did you try restarting vscode?

3cees commented 6 years ago

Yes. I also created a ne workspace.

HMubaireek commented 6 years ago

Same issue here.

jorgermiranda commented 6 years ago

Same issue! :-(

seunlanlege commented 6 years ago

I've been very busy, but will try to properly look into this issue tonight

QuiquiTheKappa commented 6 years ago

I still have that problem with my project.

Marcosaurios commented 6 years ago

Same problem here D: nothing happens when CTRL+SHIFT+P

Edit: Solved Just add this inside Workspace settings :

"run":{
    "defaultColor":"#ff0034",
    "commands":[
      {
        "name":"Run Cargo",
        "color":"green",
        "command":"cargo run"
      },
      {
        "name":"Build Cargo",
        "color":"green",
        "command":"cargo build"
      }
    ]
  }

If you can't find Workspace settings file, press CMD+P, type >workspace settings, press enter and go to Features > Terminal > Edit in settings.json. I hope you solved it!

seunlanlege commented 6 years ago

I've added a default Refresh Action Buttons in the status bar that will handle refreshing your action buttons after modifying the config.

the new config key is actionButton in your workspace settings.