Skip to content

Commit 0e0db7a

Browse files
authored
Only enable Generate Assets command when the extension is activated. (#8079)
2 parents 185207f + 357cefb commit 0e0db7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,8 @@
18231823
{
18241824
"command": "dotnet.generateAssets",
18251825
"title": "%command.dotnet.generateAssets.currentProject%",
1826-
"category": ".NET"
1826+
"category": ".NET",
1827+
"enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'"
18271828
},
18281829
{
18291830
"command": "dotnet.restore.project",

0 commit comments

Comments
 (0)