vscode-ruby-lsp icon indicating copy to clipboard operation
vscode-ruby-lsp copied to clipboard

Add code lens for running migrations

Open gmcgibbon opened this issue 1 year ago • 2 comments

Motivation

Adds code lens to run migrations to specific versions in the terminal. This is convenient because it allows developers to quickly rollback or fast-forward to specific schema versions with a click.

Part of https://github.com/Shopify/ruby-lsp-rails/pull/239

Implementation

Followed the example of the test running controller and test command registration.

Automated Tests

I don't see any tests for the test command, do they exist? Happy to add tests if I have an example to follow.

Manual Tests

Build the extension, install the extension on a Rails app with Ruby LSP + Rails extension setup using https://github.com/Shopify/ruby-lsp-rails/pull/239. Then, navigate to a migration to observe the added code lens.

gmcgibbon avatar Feb 01 '24 03:02 gmcgibbon

This pull request is being marked as stale because there was no activity in the last 2 months

github-actions[bot] avatar Apr 03 '24 12:04 github-actions[bot]

(we'll need to move this over to the monorepo)

andyw8 avatar Apr 03 '24 13:04 andyw8