Bug 2762 - Closing solution leaves documents open that were not part of solution
Summary: Closing solution leaves documents open that were not part of solution
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.8.4.1
Hardware: Macintosh Mac OS
: Low normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-01-06 14:27 UTC by Neal
Modified: 2012-10-03 03:56 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Neal 2012-01-06 14:27:36 UTC
Hello,

I'm using MD 2.8.5, all the latest (MonoTouch, Mono, etc.).  I have a few code documents open and then I choose to open another solution (File..Open) and closing prior workspace, the windows from the prior solution remain open.  I would expect everything would close and the new solution would open and possibly last windows opened from that solution would then open.

FYI
Comment 1 Mikayla Hutchinson [MSFT] 2012-01-06 15:17:09 UTC
I think it only leaves open the documents that were not part of the prior solution.
Comment 2 Neal 2012-01-06 15:22:29 UTC
No, the solution that I opened does not contain the documents that were left opened.

At times though I have had these two solutions opened in the same workspace to do some code comparisons.  However, "solution 1" was all that was opened when I opened "solution 2" (close workspace option checked) it still left documents open from solution 1 that are not in solution 2.
Comment 3 Alan McGovern 2012-05-02 10:39:39 UTC
Are the files which are left open regular source code files? Or are they windows like the 'Review Changes' version control window?
Comment 4 Neal 2012-05-02 10:47:07 UTC
Code Documents (tabs)
Comment 5 Mikayla Hutchinson [MSFT] 2012-05-02 12:19:30 UTC
See also bug 2968.
Comment 6 Rune Skovbo Johansen 2012-05-10 07:53:39 UTC
I have experienced this as well. Files that are part of one solution I suddenly find open in another solution even though I only ever opened them as part of working with the first solution, and only from inside MonoDevelop.
Comment 7 David Siegel 2012-09-11 17:25:20 UTC
To reproduce:

  1. Open the solution AppPrefs.sln from https://github.com/xamarin/monotouch-samples.
  2. Open the file Main.cs from the AppPrefs project.
  3. Right-click on the Solution node in the Solution pad, choose 'Close'.
  4. See that Main.cs tab remains open.

Main.cs should not remain open.
Comment 8 Mikayla Hutchinson [MSFT] 2012-10-02 17:27:34 UTC
Renamed title to clarify the original bug.

David's reporting a different (and more important) issue where the right-click->close behaves differently to file->close solution,  which should be handled in another bug.
Comment 9 Lluis Sanchez 2012-10-03 03:56:37 UTC
Closing a solution now closes all open project or non-project files. The other bug David reported is also fixed.