You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is expected because the Rails add-on would still have its Rails process active. I'm not sure how we could solve this, as we would to intercept that command and trigger the LSP to shutdown.
To workaround this for now, you should be able to stop Ruby LSP (Commmand-Shift-P then 'RubyLSP: Stop') before running db:drop.
andyw8
changed the title
Ruby LSP prevents dropping the database by keeping an active connection
Ruby LSP Rails prevents dropping the database by keeping an active connection
Nov 22, 2024
Ruby LSP Information
VS Code Version
1.95.3
Ruby LSP Extension Version
0.8.13
Ruby LSP Server Version
0.22.1
Ruby LSP Addons
Ruby Version
3.3.5
Ruby Version Manager
none
Installed Extensions
Click to expand
Ruby LSP Settings
Click to expand
Workspace
User
Reproduction steps
bin/rails db:drop
in the terminal.The text was updated successfully, but these errors were encountered: