Skip to content

Commit 31e94c4

Browse files
njb90claude
andcommitted
fix: detect internal install errors and drop stale Cursor status mapping
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cf66fc7 commit 31e94c4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/commands/configureAiTools.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ function registerConfigureAiTools(context: vscode.ExtensionContext): void {
106106

107107
const platformForStatus: Record<string, import("../aiToolsService").PlatformId | undefined> = {
108108
"Claude Code": "claude-code",
109-
"Cursor": "universal", // Cursor's new canonical path is .agents/skills/
110109
"VS Code (Copilot)": "vscode-copilot",
111110
};
112111
const pid = platformForStatus[ideTarget.label];

src/webview/homescreenView.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,7 @@ export class HomescreenViewProvider implements vscode.WebviewViewProvider {
825825
const createdFiles: string[] = [];
826826
let anyError = false;
827827
for (const platform of platforms) {
828+
const errsBefore = errors.length;
828829
try {
829830
if (platform === "claude-code") {
830831
await installForClaudeCode(rootUri, dirName, content, createdFiles, errors);
@@ -839,6 +840,9 @@ export class HomescreenViewProvider implements vscode.WebviewViewProvider {
839840
errors.push(`${dirName} (${platform}): ${err.message}`);
840841
anyError = true;
841842
}
843+
if (errors.length > errsBefore) {
844+
anyError = true;
845+
}
842846
}
843847
view.webview.postMessage({
844848
command: "aiToolsProgress",

0 commit comments

Comments
 (0)