Skip to content

dak2/method-ray-vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Method-Ray for Visual Studio Code

Ruby method checker using RBS - VSCode extension for Method-Ray.

Features

  • Method checking for Ruby files using RBS
  • Real-time error detection
  • Integration with Method-Ray LSP server

Setup

1. Build LSP Server

cd /path/to/methodray
cargo build --release --features lsp

2. Configure VSCode

Open settings and set the path to the LSP server:

{
  "methodray.lspPath": "/path/to/methodray/target/release/methodray-lsp"
}

Or place the binary at <workspace>/target/release/methodray-lsp for automatic detection.

Usage

  1. Open a Ruby file (.rb)
  2. Method-Ray will automatically start method checking
  3. Errors will be highlighted with diagnostics

Troubleshooting

Server not found

Make sure the LSP server is built:

cargo build --release --features lsp

RBS cache error

Generate the RBS cache:

bundle exec methodray check example.rb

About

VSCode extension for Method-Ray

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors