Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

No to_string method in suggestions to &str #618

Closed
Yanpas opened this issue Dec 7, 2017 · 5 comments
Closed

No to_string method in suggestions to &str #618

Yanpas opened this issue Dec 7, 2017 · 5 comments

Comments

@Yanpas
Copy link

Yanpas commented Dec 7, 2017

I'm using VS Code and nurcery plugin. If I type "hello".to_ and hit Ctrl+Space I won't see to_string method.

@zackmdavis
Copy link
Member

(See discussion on rust-lang/rust#42929)

@Yanpas
Copy link
Author

Yanpas commented Dec 9, 2017

I was talking about code completion, I don't think it should be limited at all.

@zackmdavis
Copy link
Member

Apologies for the previous comment not providing enough context to be clear; my understanding is that the RLS code-completion suggestions come from suggestions in the compiler, which currently does not know how to suggest .to_string. Work-in-progress that could fix this is rust-lang/rust#46461.

@nrc
Copy link
Member

nrc commented Dec 10, 2017

Code completion is currently powered by Racer which is a syntactic tool and therefore only has incomplete knowledge. This kind of omission is expected. Long term, we plan to use the compiler to provide this information, but that is blocked on a number of hard problems around performance, etc.

@nrc nrc closed this as completed Dec 10, 2017
@mezeipetister
Copy link

Any update? In 2019, still does not appear "DEMO".to_string() as code completion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants