Browse Source

Fix SD-1886 - Renaming multiple controls in forms designer causes crash with data loss

Fixed ParseableFileContentFinder to use the latest version of files opened in secondary view contents.
We were only looking at primary view contents and ignoring secondary view contents, so the rename operation was looking at the old version of the Designer.cs file.
pull/18/head
Daniel Grunwald 14 years ago
parent
commit
9f1f9a8718
  1. 2
      src/Main/Base/Project/Src/Services/ProjectService/ParseableFileContentFinder.cs

2
src/Main/Base/Project/Src/Services/ProjectService/ParseableFileContentFinder.cs

@ -16,7 +16,7 @@ namespace ICSharpCode.SharpDevelop.Project @@ -16,7 +16,7 @@ namespace ICSharpCode.SharpDevelop.Project
/// </summary>
public class ParseableFileContentFinder
{
FileName[] viewContentFileNamesCollection = WorkbenchSingleton.SafeThreadFunction(FileService.GetOpenFiles).ToArray();
FileName[] viewContentFileNamesCollection = WorkbenchSingleton.SafeThreadFunction(() => FileService.OpenedFiles.Select(f => f.FileName).ToArray());
/// <summary>
/// Retrieves the file contents for the specified project items.

Loading…
Cancel
Save