1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Ruby][VS Code] spec ファイルの Run | Run in terminal | Debug を消したい

Last updated at Posted at 2025-08-19

対象読者

VS CodeRuby LSP を使用している人 👩‍💻

やりたいこと

この Run | Run in terminal | Debug を消したい 😈

sample_spec.rb

方法 1 (推奨)

settings.json を開く。
(例えば Shift + Command + P (macOS) でコマンドパレットを開き、Open User Setting (JSON) をクリックする。)

Open settings.json

以下を追記して保存する。

"rubyLsp.featureFlags": {
  "fullTestDiscovery": false
}

方法 2

(この方法だと他の機能も意図せず消してしまうかも。)

VS Code の右下の {} をクリックする。そして x/18 features enabledManage をクリックする。

Popup

プルダウンが開くので、codeLens のチェックを外して OK をクリックする。

Popup

spec ファイルを開き直すと消えた! (反映されるまでラグがあるかも)

sample_spec.rb (after)

バージョン情報

$ code --version
1.103.0
e3550cfac4b63ca4eafca7b601f0d2885817fd1f
arm64

$ code --list-extensions --show-versions | grep ruby-lsp
shopify.ruby-lsp@0.9.32

参考

Reddit のこの投稿のおかげで解決できた!

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?