
vscode info:
Version 1.24.0
Commit 6a6e02cef0f2122ee1469765b704faf5d0e0d859
Date 2018-06-06T17:35:40.560Z
Shell 1.7.12
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64
extension version: 0.4.5
Having this issue as well.
Actually, if you use the setting "rust-client.channel": "nightly" you'll be able to go to the definition.
Though, somewhat related, if you go to a definition in the standard library you can't continue to another definition in the standard library. It basically stops right there with the first definition that you visit.
@jonathan-s Thank you for your reply.
I've tried to use the setting "rust-client.channel": "nightly", but it's still not working.
When I comment the "Use declarations", it will work once:

For me it works multiple times, not sure whether it'll make a difference but have you tried updating rust to the latest version?
I have updated rust and all component to the latest.
But it's still not working. :(
Jumping into std (or any library) should work (you might need to use master, rather than the current release). Once we're in std (or whatever) the RLS has the info, but I think there is a bug in VSCode that means the RLS doesn't get called. I filed https://github.com/Microsoft/vscode-languageserver-node/issues/363, we'll see if such a thing exists or if it can be added...
@nrc thank you
Note to self: there's a suggestion for fixing this at https://github.com/Microsoft/vscode-languageserver-node/issues/363#issuecomment-403038160
While trying to debug why tooltips don't show the line separators I think I stumbled across the fix for this.
--- a/src/extension.ts
+++ b/src/extension.ts
@@ -164,8 +164,8 @@ class ClientWorkspace {
const clientOptions: LanguageClientOptions = {
// Register the server for Rust files
documentSelector: [
- { language: 'rust', scheme: 'file', pattern: `${this.folder.uri.fsPath}/**/*` },
- { language: 'rust', scheme: 'untitled', pattern: `${this.folder.uri.fsPath}/**/*` }
+ { language: 'rust', scheme: 'file' },
+ { language: 'rust', scheme: 'untitled' }
],
@davidwudv do you still encounter this? I can't reproduce this issue.
@Xanewok no, it's working now.
Most helpful comment
Actually, if you use the setting
"rust-client.channel": "nightly"you'll be able to go to the definition.Though, somewhat related, if you go to a definition in the standard library you can't continue to another definition in the standard library. It basically stops right there with the first definition that you visit.