Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -63,7 +63,9 @@
"vscode-test": "^1.5.0"
},
"activationEvents": [],
"extensionDependencies": [],
"extensionDependencies": [
"github.copilot-chat"
],
"contributes": {
"viewsContainers": {
"activitybar": [
Expand Down Expand Up @@ -97,7 +99,6 @@
"id": "supabase.clippy",
"name": "supabase",
"description": "Ask Supabase Clippy about your database.",
"when": "extension.github.copilot-chat",
"commands": [
{
"name": "show",
Expand Down Expand Up @@ -242,4 +243,4 @@
"_moduleAliases": {
"@": "./dist"
}
}
}
18 changes: 2 additions & 16 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}