You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version
tokio v1.28.0
tokio-macros v2.1.0 (proc-macro)
tokio-util v0.7.8
tokio v1.28.0 ()
tokio v1.28.0 ()
tokio v1.28.0 ()
tokio-native-tls v0.3.1
tokio v1.28.0 ()
tokio v1.28.0 ()
tokio-native-tls v0.3.1 ()
tokio v1.28.0 (*)
Platform
Windows 11 64-bit Build: 22621.1992
Description
Enter your issue details here.
One way to structure the description:
When using the #[tokio:test] macro, the last line of the test function gets the syntax highliting of a function call, hovering over it indicates a call to new_current_thread. This occurs with macro calls (such as assert!), method calls on objects, and basically any identifier at the start of the last line (even if the identifier doesnt exist)
I tried this code:
mod test {#[tokio:test]asyncfnmy_test(){assert!(true);}}
I expected to see this happen: assert! is highlighted as a macro call, hovering over it shows docs about the assert macro
Instead, this happened: assert! is highlighted as a function call:
Hovering over it shows new_current_thread docs:
This happens to any identifier even if it doesn't exist:
This does not happen to let bindings, literals or inside control flow blocks, such as if or match:
The text was updated successfully, but these errors were encountered:
Version
tokio v1.28.0
tokio-macros v2.1.0 (proc-macro)
tokio-util v0.7.8
tokio v1.28.0 ()
tokio v1.28.0 ()
tokio v1.28.0 ()
tokio-native-tls v0.3.1
tokio v1.28.0 ()
tokio v1.28.0 ()
tokio-native-tls v0.3.1 ()
tokio v1.28.0 (*)
Platform
Windows 11 64-bit Build: 22621.1992
Description
Enter your issue details here.
One way to structure the description:
When using the
#[tokio:test]
macro, the last line of the test function gets the syntax highliting of a function call, hovering over it indicates a call tonew_current_thread
. This occurs with macro calls (such asassert!
), method calls on objects, and basically any identifier at the start of the last line (even if the identifier doesnt exist)I tried this code:
I expected to see this happen:
assert!
is highlighted as a macro call, hovering over it shows docs about the assert macroInstead, this happened:

assert!
is highlighted as a function call:Hovering over it shows

new_current_thread
docs:This happens to any identifier even if it doesn't exist:

This does not happen to


let
bindings, literals or inside control flow blocks, such asif
ormatch
:The text was updated successfully, but these errors were encountered: