-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
[Enhancement] Info Panel: Only auto-popup when an F#-type file is opened. #1176
Comments
Hey @baronfel 👋, Thank you for opening an issue. We will get back to you as https://opencollective.com/ionide
|
Makes sense, should be fairly easy to do - in the place where we make InfoPanel visible during plugin startup we can check current list of opened documents and check if any is F# file. |
Another option is to never auto-popup, or even better, to configure its behavior through the settings. |
That’s exactly how my setting look like. Doesn’t the second option being disabled imply that the F# window shouldn’t popup on start?
Από: Maxime Mangel
Αποστολή: Δευτέρα, 15 Ιουλίου 2019 1:19 μμ
Προς: ionide/ionide-vscode-fsharp
Κοιν.: Theodore Tsirpanis; Comment
Θέμα: Re: [ionide/ionide-vscode-fsharp] [Enhancement] Info Panel: Onlyauto-popup when an F#-type file is opened. (#1176)
Another option is to never auto-popup, or even better, to configure its behavior through the settings.
You can already configure it's behaviour via the settings:
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
OK. Thanks. |
Is this issue still open? |
I too have noticed this. I open up a csharp project, and within a few seconds the F# solution explorer & InfoPanel appear all proud as punch, only to steal my screen real estate and then tell me csproj is not a supported language. 🙄 If you close the info panel and right click -> hide the F# solution explorer, close & re-open vscode csproj solution, this makes no difference as they both popup again. Looking at the vscode docs I notice this key piece of information under Extension Host:
Under Activation Events:
@Krzysztof-Cieslak would using the onLanguage activation event be a better approach for initialising the info panel & solution explorer? Could also do away with the info panel on startup setting as it would then be redudant. I'd be happy to try submitting a PR if you can sort of point me in the right direction, is it something in the |
For reference, @wilsoncg, the current set of activation events that we use are located here. We're already using the fsharp language identifier, which is not the problem here. We don't want to change these because we want Ionide to be running before you need it and these do a good job for this. I believe the fix as @Krzysztof-Cieslak was suggesting is to expand the condition here to check if if show && window.visibleTextEditors |> Seq.exists isFsharpTextEditor
then openPanel () |> ignore
else () |
Interesting @baronfel. I'm still slightly confused, as vscode has correctly detected my project is C# but then ionide has ignored that & forcefully loaded anyway. That looks to me like ionide is not correctly using the language identifier activation. For example as a contrast, the docker extension looks to load on demand. The F# solution explorer is loading for C# projects, & grabbing focus, should it not load on demand instead? Surely it's un-necessary to do any loading for a C# project? |
The part I think you're overlooking is that solution files are part of our activation events as well. There are many different activation events described in the links I sent you, and it's this one that is causing the overlap on c# projects. You'll note that omnisharp for example has the same activation event, loading whenever an F# only solutions load, so you have the same problem. |
Ah right, got it, thanks for the info. |
personally, I have things set up to fold the solution explorer into the outline pane instead of a separate pane, which seems to do a good job of preventing that pop-out you speak of. I think that coupled with the code change above on the info panel would go a long way to handling your concerns. |
Fixed by #1438 |
Is your feature request related to a problem? Please describe.
When I open my work repository and I was last working on yaml/bash/any non-F# file, the Info Panel pops up. When I'm working with F# files I want this behavior, but for non-F# coding tasks I don't want it right away.
Describe the solution you'd like
I'd like if the Info Panel wasn't popped-up automatically until the first F# file was opened. This would keep the Info Panel relevant while minimizing the number of times it's present and not immediately useful, I think. Imagine the case where you open a yaml file first: the info panel is present and completely blank, obscuring parts of your screen. Now imagine a world where you work in yaml unobstructed until you go to some F# code and BAM your beloved Info Panel is right there with you, helping you along your coding journey.
Describe alternatives you've considered
Closing the Info Panel all the time. This hurts because it's like I'm saying goodbye to a close friend.
The text was updated successfully, but these errors were encountered: