[英]How can I get Visual Studio Code to reset the IntelliSense engine for Rust?
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.
当我对库进行更改时,其他 window(程序)看不到这些更改,因此我没有获得更新的 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.
关闭使用该库的程序并重新打开它确实会强制更新,但我真的不希望 go 走那么远。
Answering the title directly and not the root issue...直接回答标题而不是根本问题...
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).您可以通过从命令面板 (Ctrl+Shift+P) 运行“Rust: Restart the Rust server”命令来重置 IntelliSense 和所有 Rust 代码功能。
Progress will be indicated in the status bar.进度将显示在状态栏中。
Still a blunt tool but it will ensure you're in a fresh state without having to restart VS Code entirely.仍然是一个生硬的工具,但它可以确保您处于全新的 state 中,而无需完全重新启动 VS Code。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.