rls
rls copied to clipboard
VSCodium+RLS fails to reveal Tokio `fs` module type info
Version
The Cargo.toml line pertinent to Tokio is tokio = { version = "0.2.13", features = ["full"] }
.
The crate is a member of a workspace.
The editor is VSCodium v1.42.1 using RLS extension rust-lang.rust-0.7.0.vsix.
Platform
macOS 10.14.6 (Darwin system.local 18.7.0 Darwin Kernel Version 18.7.0: Thu Jan 23 06:52:12 PST 2020; root:xnu-4903.278.25~1/RELEASE_X86_64 x86_64)
Description
use tokio::fs;
#[tokio::main]
async fn main() -> std::io::Result<()> {
// The following line fails to reveal type info when hovering the cursor over
// keywords, however all other lines function as expected.
let index = fs::read_to_string("index.html").await?;
Ok(())
}
I've located the source of the problem however I'm unsure of how to proceed. If https://github.com/tokio-rs/tokio/blob/master/tokio/src/lib.rs#L303 and 305 are removed, type info is revealed as expected.
Is this an issue with Tokio proper or with RLS?
This issue may be related to https://github.com/rust-lang/rls/issues/1566.