Skip to content

Commit f9a59ea

Browse files
hide setup
1 parent 7f2a4bc commit f9a59ea

1 file changed

Lines changed: 22 additions & 6 deletions

File tree

package.json

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,20 @@
7979
"when": "codacy:hasProject && Codacy:CodacyCloudStateContext == Loaded && Codacy:BranchStateContext == OnAnalysedBranch",
8080
"icon": "$(bug)",
8181
"initialSize": 3
82+
},
83+
{
84+
"id": "codacy:mcp",
85+
"name": "AI Guardrails",
86+
"when": "codacy:hasProject && codacy:supportsMCP",
87+
"icon": "$(gear)",
88+
"initialSize": 2
8289
},
8390
{
84-
"type": "webview",
85-
"id": "codacy.setupView",
86-
"name": "Setup",
87-
"when": "codacy:hasProject",
88-
"collapsed": false,
89-
"initialSize": 4
91+
"id": "codacy:cli",
92+
"name": "Local Analysis",
93+
"when": "codacy:hasProject && ((!codacy:cliInstalled && codacy:canInstallCLI) || (codacy:windowsDetected && !codacy:canInstallCLI))",
94+
"icon": "$(gear)",
95+
"initialSize": 2
9096
},
9197
{
9298
"id": "codacy:support",
@@ -107,6 +113,11 @@
107113
"contents": "Codacy Cloud is initializing...",
108114
"when": "Codacy:CodacyCloudStateContext == Initializing"
109115
},
116+
{
117+
"view": "codacy:cloud-status",
118+
"contents": "You are not connected to Codacy. Connect to Codacy to customize your rules and scan every PR before it gets merged.\n[Connect to Codacy](command:codacy.codacyAuth)\n\nGet access to all features: coverage, DAST, SCA scanning, and more. [Learn more about Codacy](https://www.codacy.com/)",
119+
"when": "Codacy:CodacyCloudStateContext == NeedsAuthentication"
120+
},
110121
{
111122
"view": "codacy:cloud-status",
112123
"contents": "This project isn't a Git repository. To connect it to Codacy, initialize a Git repository first.",
@@ -127,6 +138,11 @@
127138
"contents": "An admin must approve your request to join the organization on Codacy.",
128139
"when": "Codacy:CodacyCloudStateContext == HasPendingJoinOrganization"
129140
},
141+
{
142+
"view": "codacy:cloud-status",
143+
"contents": "This organization is not part of Codacy.\n[Add organization](command:codacy.codacyAuth)",
144+
"when": "Codacy:CodacyCloudStateContext == NeedsToAddOrganization"
145+
},
130146
{
131147
"view": "codacy:cloud-status",
132148
"contents": "Ensure full protection by adding PR-level scans to this repo so that no security vulnerabilities are added.\n[Add repository to Codacy](command:codacy.addRepository)\nAdds this Git repository to Codacy with your organization default scanning rules.",

0 commit comments

Comments
 (0)