Skip to content

Conversation

jd-pr
Copy link

@jd-pr jd-pr commented Jul 14, 2025

Fixes issue where extension/database silently fails to connect without active GitHub Copilot subscription.

  • Remove github.copilot-chat from extensionDependencies array
  • Add runtime detection for Copilot availability in extension.ts
  • Implement graceful fallback messages in chatRequestHandler.ts
  • Preserve all database management features for users without Copilot
  • Enable AI features only when Copilot is available

This allows the extension to activate for all users while maintaining AI functionality for those with active Copilot subscriptions.

What kind of change does this PR introduce?

Optional dependency/bug fix

What is the current behavior?

Currently, the extension silently fails when users attempt to connect to their Supabase database without an active GitHub Copilot subscription. The extension appears in VS Code's activity bar, but clicking "Connect" results in an indefinite hang with no error messages or feedback. This happens because the extension has a hard dependency on github.copilot-chat which prevents it from activating without Copilot.

What is the new behavior?

  • The extension now activates successfully for all users, regardless of Copilot subscription status
  • Users without Copilot can use all database management features (connect, manage migrations, view tables, etc.)
  • Users with Copilot continue to have access to all AI-powered chat features
  • When AI features are used without Copilot, messages explain that these features require an active GitHub Copilot subscription

Additional context

The current implementation affects any user who:

  • Doesn't have a GitHub Copilot subscription
  • Has an expired Copilot trial
  • Has Copilot disabled in their VS Code

The fix is minimal and maintains backward compatibility while significantly improving the user experience for those without Copilot subscriptions.

Fixes issue where extension/database silently fails to connect without active GitHub Copilot subscription.

- Remove github.copilot-chat from extensionDependencies array
- Add runtime detection for Copilot availability in extension.ts
- Implement graceful fallback messages in chatRequestHandler.ts
- Preserve all database management features for users without Copilot
- Enable AI features only when Copilot is available

This allows the extension to activate for all users while maintaining
AI functionality for those with active Copilot subscriptions.
@Hallidayo
Copy link
Collaborator

Hi @jd-pr - Thanks for opening this one. Verison 0.0.11 has been released so a couple of conflicts on this one now, If you resolve I'll take a look after changes have been made.

- Accept upstream changes for optional Copilot dependency
- Resolve conflicts in package.json and src/extension.ts
- Retain enhanced error handling in chatRequestHandler.ts
@jd-pr
Copy link
Author

jd-pr commented Jul 27, 2025

hey, checking in. let me know if there are any other issues

@Hallidayo
Copy link
Collaborator

Hi @jd-pr, sorry for the delay in this. I'll be pushing out next week 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants