You can see the execution results by saving the file.
rstfilter-lsp command in latest
rstfilter gem is needed.
$ gem install rstfilter
.rb file and edit the script.
Start rstfilter using one of the following three methods:
Use command "rstfilter: Save, exec and show results".
Click "rstfilter" status bar.
Confirm the execution results on source code and the output.
Hover your mouse pointer on the expression in the editor window and you can see the results.
Edit the script and all results are removed.
If your program halts, click the rstfilter status bar and the Ruby process will be killed.
ruby-rstfilter.save_exec_and_show: Start rstfilter.
ruby-rstfilter.restart: Restart rstfilter language server. If a Ruby process is running by rstfilter, kill the Ruby process.
- Rstfilter Lsp Path: Path to rstfilter-lsp (gem rstfilter for install).
- Enable On Default: Enable rstfilter extension on load.
Writing library tips
Traditional idiom using
$0 will help to use this extension.
if $0 == __FILE__
# Try MyLib here.
# This code doesn't work when this file is required.