|
45 | 45 | "codacy-main": [ |
46 | 46 | { |
47 | 47 | "id": "codacy:statuses", |
48 | | - "name": "Status", |
| 48 | + "name": "Codacy Cloud", |
49 | 49 | "icon": "$(library)", |
50 | 50 | "when": "!codacy:hasProject || Codacy:RepositoryManagerStateContext == NeedsAuthentication ||Codacy:RepositoryManagerStateContext == NoRepository || Codacy:RepositoryManagerStateContext == NoRemote || Codacy:RepositoryManagerStateContext == Initializing || (Codacy:RepositoryManagerStateContext == Loaded && Codacy:PullRequestStateContext == NoPullRequest)", |
51 | 51 | "initialSize": 1, |
52 | 52 | "collapsed": false |
53 | 53 | }, |
54 | | - { |
55 | | - "id": "codacy:cli", |
56 | | - "name": "Codacy CLI", |
57 | | - "when": "codacy:hasProject && ((!codacy:cliInstalled && codacy:canInstallCLI) || codacy:windowsDetected)", |
58 | | - "icon": "$(gear)", |
59 | | - "initialSize": 2 |
60 | | - }, |
61 | | - { |
62 | | - "id": "codacy:mcp", |
63 | | - "name": "Codacy MCP Server", |
64 | | - "when": "codacy:hasProject && codacy:supportsMCP", |
65 | | - "icon": "$(gear)", |
66 | | - "initialSize": 2 |
67 | | - }, |
68 | 54 | { |
69 | 55 | "id": "codacy:prSummary", |
70 | 56 | "name": "Pull request", |
|
86 | 72 | "icon": "$(bug)", |
87 | 73 | "initialSize": 3 |
88 | 74 | }, |
| 75 | + { |
| 76 | + "id": "codacy:mcp", |
| 77 | + "name": "AI Guardrails", |
| 78 | + "when": "codacy:hasProject && codacy:supportsMCP", |
| 79 | + "icon": "$(gear)", |
| 80 | + "initialSize": 2 |
| 81 | + }, |
| 82 | + { |
| 83 | + "id": "codacy:cli", |
| 84 | + "name": "Local Analysis", |
| 85 | + "when": "codacy:hasProject && ((!codacy:cliInstalled && codacy:canInstallCLI) || codacy:windowsDetected)", |
| 86 | + "icon": "$(gear)", |
| 87 | + "initialSize": 2 |
| 88 | + }, |
89 | 89 | { |
90 | 90 | "id": "codacy:support", |
91 | 91 | "name": "Chat with us", |
92 | 92 | "icon": "$(question)", |
93 | | - "collapsed": false |
| 93 | + "collapsed": false, |
| 94 | + "initialSize": 1 |
94 | 95 | } |
| 96 | + |
95 | 97 | ] |
96 | 98 | }, |
97 | 99 | "viewsWelcome": [ |
|
101 | 103 | }, |
102 | 104 | { |
103 | 105 | "view": "codacy:statuses", |
104 | | - "contents": "You are not connected to Codacy.\n[Connect to Codacy](command:codacy.signIn)", |
| 106 | + "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.signIn)\n\nGet access to all features: coverage, DAST, SCA scanning, and more. [Learn more about Codacy](https://www.codacy.com/)", |
105 | 107 | "when": "codacy:hasProject && Codacy:RepositoryManagerStateContext == NeedsAuthentication" |
106 | 108 | }, |
107 | 109 | { |
108 | 110 | "view": "codacy:statuses", |
109 | | - "contents": "There is no project opened. Open a project to use Codacy extension.", |
| 111 | + "contents": "No project is open. Open a project to use the Codacy extension.", |
110 | 112 | "when": "!codacy:hasProject" |
111 | 113 | }, |
112 | 114 | { |
113 | 115 | "view": "codacy:statuses", |
114 | 116 | "contents": "This project isn't a Git repository. To connect it to Codacy, initialize a Git repository first.", |
115 | | - "when": "!codacy:isGitRepository && codacy:hasProject" |
| 117 | + "when": "!codacy:isGitRepository && codacy:hasProject && Codacy:RepositoryManagerStateContext != NeedsAuthentication" |
116 | 118 | }, |
117 | 119 | { |
118 | 120 | "view": "codacy:statuses", |
|
135 | 137 | "when": "codacy:hasProject && codacy:isGitRepository && Codacy:RepositoryManagerStateContext == Loaded && Codacy:PullRequestStateContext == NoPullRequest" |
136 | 138 | }, |
137 | 139 | { |
138 | | - "view": "codacy:cli", |
139 | | - "contents": "Install Codacy CLI to analyze your code locally\n[Install Codacy CLI](command:codacy.installCLI)", |
140 | | - "when": "!codacy:cliInstalled && codacy:canInstallCLI && !codacy:cliInstalling " |
| 140 | + "view": "codacy:mcp", |
| 141 | + "contents": "Control your AI generated code with [Codacy Guardrails](https://www.codacy.com/guardrails/).\n[Install Guardrails](command:codacy.configureGuardrails)\n\nGets everything set up by installing Codacy CLI, setting up Codacy MCP Server, and adding the necessary agent rules files.\n\nYou can also choose to [only install the MCP Server](command:codacy.configureMCP)", |
| 142 | + "when": "codacy:supportsMCP && !codacy:mcpConfigured && !codacy:cliInstalled && codacy:canInstallCLI && !codacy:cliInstalling" |
141 | 143 | }, |
142 | 144 | { |
143 | | - "view": "codacy:cli", |
144 | | - "contents": "Codacy CLI is only available on Windows via WSL. Make sure you install the WSL extension and start a WSL window.", |
145 | | - "when": "codacy:windowsDetected" |
| 145 | + "view": "codacy:mcp", |
| 146 | + "contents": "Set up Codacy MCP Server to get access to Codacy information from your agent.\n[Install MCP Server](command:codacy.configureMCP)\n\nTo control your AI generated code with [Codacy Guardrails](https://www.codacy.com/guardrails/), you need to be able to install the Codacy CLI (macOS, Linus, or Windows via WSL).", |
| 147 | + "when": "codacy:supportsMCP && !codacy:mcpConfigured && !codacy:canInstallCLI" |
146 | 148 | }, |
147 | 149 | { |
148 | | - "view": "codacy:cli", |
149 | | - "contents": "$(loading~spin) Installing Codacy CLI...", |
150 | | - "when": "!codacy:cliInstalled && codacy:canInstallCLI && codacy:cliInstalling" |
| 150 | + "view": "codacy:mcp", |
| 151 | + "contents": "Control your AI generated code with [Codacy Guardrails](https://www.codacy.com/guardrails/). Install the missing components to get started.", |
| 152 | + "when": "(codacy:supportsMCP && !codacy:mcpConfigured && codacy:cliInstalled) || (!codacy:cliInstalled && codacy:canInstallCLI && !codacy:cliInstalling && codacy:mcpConfigured)" |
151 | 153 | }, |
152 | 154 | { |
153 | 155 | "view": "codacy:mcp", |
154 | | - "contents": "Enable your AI Agent to interact with Codacy Guardrails \n[Add Codacy MCP Server](command:codacy.configureMCP)", |
155 | | - "when": "codacy:supportsMCP && !codacy:mcpConfigured" |
| 156 | + "contents": "Control your AI generated code with [Codacy Guardrails](https://www.codacy.com/guardrails/).", |
| 157 | + "when": "codacy:supportsMCP && codacy:mcpConfigured && codacy:canInstallCLI && codacy:cliInstalled" |
156 | 158 | }, |
157 | 159 | { |
158 | 160 | "view": "codacy:mcp", |
159 | | - "contents": "Codacy Guardrails MCP Server is enabled\n[Reset MCP Server](command:codacy.configureMCP.reset)", |
| 161 | + "contents": "$(check) Codacy MCP Server is set up. [Reset MCP Server](command:codacy.configureMCP.reset)", |
160 | 162 | "when": "codacy:supportsMCP && codacy:mcpConfigured" |
| 163 | + }, |
| 164 | + { |
| 165 | + "view": "codacy:mcp", |
| 166 | + "contents": "$(warning) MCP Server not found. [Install MCP Server](command:codacy.configureMCP)", |
| 167 | + "when": "codacy:supportsMCP && !codacy:mcpConfigured && codacy:cliInstalled && !codacy:cliInstalling" |
| 168 | + }, |
| 169 | + { |
| 170 | + "view": "codacy:mcp", |
| 171 | + "contents": "$(check) Codacy CLI is installed. [Go to settings](command:workbench.action.openSettings?%22@ext:codacy-app.codacy%20cli%22).", |
| 172 | + "when": "codacy:canInstallCLI && codacy:cliInstalled" |
| 173 | + }, |
| 174 | + { |
| 175 | + "view": "codacy:mcp", |
| 176 | + "contents": "$(warning) Codacy CLI not found. [Install CLI](command:codacy.installCLI)", |
| 177 | + "when": "codacy:supportsMCP && codacy:mcpConfigured && !codacy:cliInstalled && codacy:canInstallCLI && !codacy:cliInstalling" |
| 178 | + }, |
| 179 | + { |
| 180 | + "view": "codacy:cli", |
| 181 | + "contents": "Install Codacy CLI to analyze your code locally and get instant feedback as you type.\n[Install Codacy CLI](command:codacy.installCLI)\n\nSets everything up in your IDE so you're ready to go, including any dependencies you need (like Node, Python, or Java). Customize how it works in the [extension settings](command:workbench.action.openSettings?%22@ext:codacy-app.codacy%20cli%22).", |
| 182 | + "when": "!codacy:cliInstalled && codacy:canInstallCLI && !codacy:cliInstalling" |
| 183 | + }, |
| 184 | + { |
| 185 | + "view": "codacy:cli", |
| 186 | + "contents": "Codacy CLI is only available on Windows via WSL. Make sure you install the WSL extension and start a WSL window.", |
| 187 | + "when": "codacy:windowsDetected" |
| 188 | + }, |
| 189 | + { |
| 190 | + "view": "codacy:cli", |
| 191 | + "contents": "$(loading~spin) Installing Codacy CLI...", |
| 192 | + "when": "!codacy:cliInstalled && codacy:canInstallCLI && codacy:cliInstalling" |
161 | 193 | } |
162 | 194 | ], |
163 | 195 | "commands": [ |
|
326 | 358 | "type": "object", |
327 | 359 | "title": "Codacy", |
328 | 360 | "properties": { |
329 | | - "codacy.apiToken": { |
330 | | - "type": "string", |
331 | | - "description": "API Personal Token" |
332 | | - }, |
333 | 361 | "codacy.guardrails.analyzeGeneratedCode": { |
334 | 362 | "type": "string", |
335 | 363 | "title": "Automatically analyze generated code with Codacy Guardrails", |
|
0 commit comments