Skip to content

Commit 49803bf

Browse files
committed
Fixes
1 parent 33704dc commit 49803bf

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
{
7474
"command": "cline.mcpButtonClicked",
7575
"title": "MCP Servers",
76-
"icon": "$(extensions)"
76+
"icon": "$(server)"
7777
},
7878
{
7979
"command": "cline.historyButtonClicked",

src/extension.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,12 @@ export function activate(context: vscode.ExtensionContext) {
295295
arguments: [range, context.diagnostics],
296296
}
297297

298-
return [addAction, fixAction]
298+
// Only show actions when there are errors
299+
if (context.diagnostics.length > 0) {
300+
return [addAction, fixAction]
301+
} else {
302+
return []
303+
}
299304
}
300305
})(),
301306
{

0 commit comments

Comments
 (0)