Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add file open support for route lookup #2232

Merged
merged 1 commit into from
Jul 8, 2024
Merged

Add file open support for route lookup #2232

merged 1 commit into from
Jul 8, 2024

Conversation

gmcgibbon
Copy link
Member

@gmcgibbon gmcgibbon commented Jun 28, 2024

Motivation

To support mapping controller actions to routes in Shopify/ruby-lsp-rails#241.

Allows us to open files using a platform-agnostic command.

Implementation

Implements rubyLsp.openFile using a controller.

Automated Tests

None. I didn't see any for similar commands, maybe I missed theem. Do I need these?

Manual Tests

Works with corresponding PR over on ruby-lsp-rails.

@gmcgibbon gmcgibbon requested a review from a team as a code owner June 28, 2024 01:25
@gmcgibbon gmcgibbon requested review from st0012 and vinistock June 28, 2024 01:25
@gmcgibbon gmcgibbon force-pushed the lookup_route branch 2 times, most recently from 98482f0 to 0f25562 Compare July 2, 2024 21:33
@gmcgibbon gmcgibbon added enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes labels Jul 2, 2024
vscode/package.json Outdated Show resolved Hide resolved
vscode/src/fileController.ts Outdated Show resolved Hide resolved
vscode/src/fileController.ts Outdated Show resolved Hide resolved
To support mapping controller actions to routes in Shopify/ruby-lsp-rails#241.
@vinistock vinistock merged commit 9bf5c5c into main Jul 8, 2024
35 checks passed
@vinistock vinistock deleted the lookup_route branch July 8, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants