如何让 Visual Studio Code 为 Rust 重置 IntelliSense 引擎? [英] How can I get Visual Studio Code to reset the IntelliSense engine for Rust?
问题描述
我正在做两个项目,一个是库,另一个是使用该库的程序.当我对库进行更改时,另一个窗口(程序)看不到这些更改,因此我没有更新 IntelliSense.关闭使用库的程序并重新打开它确实会强制更新,但我真的不想走那么远.
I am working on two projects, one is a library, the other is a program that uses that library. When I make changes to the library the other window (the program) doesn't see these changes, so I do not get updated IntelliSense. Closing the program that uses the library and reopening it does force an update but I really prefer not having to go that far.
推荐答案
直接回答标题而不是根本问题...
Answering the title directly and not the root issue...
您可以通过运行Rust:重启 Rust 服务器"来重置 IntelliSense 和所有 Rust 代码功能.命令面板中的命令 (Ctrl+Shift+P).
You can reset IntelliSense and all Rust code features by running the "Rust: Restart the Rust server" command from the command palette (Ctrl+Shift+P).
状态栏会显示进度.
仍然是一个生硬的工具,但它将确保您处于全新状态,而无需完全重新启动 VS Code.
Still a blunt tool but it will ensure you're in a fresh state without having to restart VS Code entirely.
这篇关于如何让 Visual Studio Code 为 Rust 重置 IntelliSense 引擎?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!