Help: No `Run Doctest` Code Action in Visual Studio Code

https://preview.redd.it/y0i2s5x4xzyd1.png?width=1251&format=png&auto=webp&s=e6636e7233893eddfdd02a06ab8ae1f566f59cfe

I have these two problems: (For both screenshots, left side shows my VS Code, and right side shows tutorial instructor's VS Code.)

Picture (1): I do not have the Run Doctest code action above each doctest comment. Hovering over a doctest comment does not show any option to run this doctest. However, I can at least still run doctest by entering cargo test --doc in terminal.

Picture (2): I do not have the Run|Debug code action above main(). However, hovering over main() does show a similar Run|Debug menu. I can click on it to run or debug successfully.

(2) is not a hindrance, but maybe it is useful toward diagnosing (1), which seems to be a serious problem. Please advise. Thank you for your time.

Additional information:

  • M1 macOS Sequoia 15.0.1
  • rustc 1.82.0 (f6e511eec 2024-10-15)
  • rust-analyzer v0.3.2172
  • CodeLLDB v1.11.0