From 83393a1514821142e2cf1fb23af7ee2d0ee2d753 Mon Sep 17 00:00:00 2001 From: hallidayo <22655069+Hallidayo@users.noreply.github.com> Date: Mon, 15 Dec 2025 17:19:46 +0000 Subject: [PATCH] revert fix for chat --- CHANGELOG.md | 6 +++++- package.json | 9 +++++---- src/extension.ts | 18 ++---------------- 3 files changed, 12 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50e9843..b82ad91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## v0.0.12 - 2025-12-15 + +- fix: chat participant with Supabase enabled + ## v0.0.11 - 2025-07-22 - fix: Make chat participant registration conditional for VS Code alternatives compatibility @@ -16,4 +20,4 @@ - chore(chat): Update `chatRequestHandler` to use `gpt-4o`. - chore(docs): Add categories and keywords. -- chore(docs): Add Changelog. +- chore(docs): Add Changelog diff --git a/package.json b/package.json index 1bc6e7e..32393f4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-supabase-extension", "displayName": "Supabase", "description": "Supabase Extension for VS Code and GitHub Copilot.", - "version": "0.0.11", + "version": "0.0.12", "engines": { "vscode": "^1.90.0" }, @@ -63,7 +63,9 @@ "vscode-test": "^1.5.0" }, "activationEvents": [], - "extensionDependencies": [], + "extensionDependencies": [ + "github.copilot-chat" + ], "contributes": { "viewsContainers": { "activitybar": [ @@ -97,7 +99,6 @@ "id": "supabase.clippy", "name": "supabase", "description": "Ask Supabase Clippy about your database.", - "when": "extension.github.copilot-chat", "commands": [ { "name": "show", @@ -242,4 +243,4 @@ "_moduleAliases": { "@": "./dist" } -} +} \ No newline at end of file diff --git a/src/extension.ts b/src/extension.ts index afacba2..9f91f91 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -24,20 +24,6 @@ export function activate(context: vscode.ExtensionContext) { supabase }); - // Register chat participant only if the API is available (VS Code with Copilot) - let participant: vscode.ChatParticipant | undefined; - try { - if (vscode.chat && vscode.chat.createChatParticipant) { - participant = vscode.chat.createChatParticipant('supabase.clippy', createChatRequestHandler(supabase)); - } - } catch (error) { - console.log('Chat participant not available, continuing without chat features'); - } - - // Add subscriptions conditionally - const subscriptions: vscode.Disposable[] = [connectSupabaseView, databaseView]; - if (participant) { - subscriptions.push(participant); - } - context.subscriptions.push(...subscriptions); + const participant = vscode.chat.createChatParticipant('supabase.clippy', createChatRequestHandler(supabase)); + context.subscriptions.push(participant, connectSupabaseView, databaseView); }