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

Is it possible to prevent Rider to add "open" statement at the top of the file? #250

Open
MangelMaxime opened this issue Mar 31, 2021 · 1 comment

Comments

@MangelMaxime
Copy link

Hello,

I have the option "Enable out of scope items completion" disabled.

image

But I still, see completion like that:

image

This cause me pains because in general, it is proposed on top of the list of the item I want and so Rider add an open XXX statement at the top of my file.

rider_open_out_of_scope

Is it a bug or is this option not related to the behaviour I am experimenting?

File: Form.Error.fs

module Form.Error

type Error =
    | RequiredFieldIsEmpty
    | ValidationFailed of string
    | External of string

File: Form.View.fs

module Form.View

open Form

let test (e : Error....) =
                //  ^- edition at this point
@smoothdeveloper
Copy link

Aside, despite I'm probably not grasping the issue fully, when that out of scope completion triggers, it would be good to have both alternatives: add the open or use the qualified form, which doesn't seem to show up.

The similar fix in Visual Studio always offer both forms and it would be great to have feature parity on that aspect, I also kind of remember that Resharper offers the same for C# code.

// Grrr :) 😄

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

No branches or pull requests

2 participants