|
79 | 79 | "when": "codacy:hasProject && Codacy:CodacyCloudStateContext == Loaded && Codacy:BranchStateContext == OnAnalysedBranch", |
80 | 80 | "icon": "$(bug)", |
81 | 81 | "initialSize": 3 |
| 82 | + }, |
| 83 | + { |
| 84 | + "id": "codacy:mcp", |
| 85 | + "name": "AI Guardrails", |
| 86 | + "when": "codacy:hasProject && codacy:supportsMCP", |
| 87 | + "icon": "$(gear)", |
| 88 | + "initialSize": 2 |
82 | 89 | }, |
83 | 90 | { |
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 |
90 | 96 | }, |
91 | 97 | { |
92 | 98 | "id": "codacy:support", |
|
107 | 113 | "contents": "Codacy Cloud is initializing...", |
108 | 114 | "when": "Codacy:CodacyCloudStateContext == Initializing" |
109 | 115 | }, |
| 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 | + }, |
110 | 121 | { |
111 | 122 | "view": "codacy:cloud-status", |
112 | 123 | "contents": "This project isn't a Git repository. To connect it to Codacy, initialize a Git repository first.", |
|
127 | 138 | "contents": "An admin must approve your request to join the organization on Codacy.", |
128 | 139 | "when": "Codacy:CodacyCloudStateContext == HasPendingJoinOrganization" |
129 | 140 | }, |
| 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 | + }, |
130 | 146 | { |
131 | 147 | "view": "codacy:cloud-status", |
132 | 148 | "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