I have a command that I want to appear on the menu whenever you right click on any type of file in the file explorer on visual studio code.
This configuration from my package.json file works when I right click on typescript files, but what option should I use so that it does this on all types of files?
"contributes": {
"commands": [
{
"command": "uploadCurrentFile.command",
"title": "Upload Current File"
}
],
"menus": {
"explorer/context": [{
"when": "resourceLangId == typescript",
"command": "uploadCurrentFile.command",
"group": "navigation"
}]
}
},
So that it pops up at the top of this menu Screenshot of right click menu on file explorer for every type of file.
As stated in the comments, just remove the when clause, or explicitly set it to true
.