Closed 3cees closed 6 years ago
can i see your workspace settings?
{ "folders": [ { "path": "." }, { "path": "WpQrLogin" } ], "settings": {} }
How should it look like?
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",
}
]
}
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. ;(
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"
}
]
}
}
I get an error then: Unknown Workspace configuration property and "run" is underlined. The buttons do not apear.
disregard the warning, now refresh action buttons.
i did. nothing happens.
did you try restarting vscode?
Yes. I also created a ne workspace.
Same issue here.
Same issue! :-(
I've been very busy, but will try to properly look into this issue tonight
I still have that problem with my project.
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!
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.
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