Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Have the LSP filter the auto completion list based on conditional conformance #3343

Open
1 task done
soraros opened this issue Jul 31, 2024 · 1 comment
Labels
enhancement New feature or request Initiative: LSP mojo-repo Tag all issues with this label

Comments

@soraros
Copy link
Contributor

soraros commented Jul 31, 2024

Review Mojo's priorities

What is your request?

fn main():
    var s = S[String]()
    s.
    # ^: Don't how f here in intellisense 

@value
struct S[T: CollectionElement]:
    fn f(self: S[Int]):
        pass

What is your motivation for this change?

It's rather pointless to suggest code that won't type check. It's also seen in other languages like Swift and Rust.

Any other details?

N/A.

@soraros soraros added enhancement New feature or request mojo-repo Tag all issues with this label labels Jul 31, 2024
@walter-erquinigo walter-erquinigo removed the enhancement New feature or request label Aug 15, 2024
Copy link
Contributor

Nice catch. I'll put it in the roadmap for the LSP

@walter-erquinigo walter-erquinigo added the enhancement New feature or request label Aug 15, 2024 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Initiative: LSP mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

2 participants