From 220e76502d82a46f180c09da222a3c8bd16fa739 Mon Sep 17 00:00:00 2001 From: Basoundr_ms Date: Wed, 17 Dec 2014 10:37:42 -0800 Subject: [PATCH] Bugfix 1094427. Fix flaky Testcase. Call WithDocumentText when fed with the same text sometimes doesn't return the same instance of the Document because TextSource, a WeakReference, sometimes loses the reference and the perf optimization to return the same instance of the Document is not possbile. (changeset 1387876) --- .../CodeCleanup/Providers/FormatCodeCleanupProvider.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Src/Workspaces/Core/Portable/CodeCleanup/Providers/FormatCodeCleanupProvider.cs b/Src/Workspaces/Core/Portable/CodeCleanup/Providers/FormatCodeCleanupProvider.cs index 6d245178b68..eec1bd19ecd 100644 --- a/Src/Workspaces/Core/Portable/CodeCleanup/Providers/FormatCodeCleanupProvider.cs +++ b/Src/Workspaces/Core/Portable/CodeCleanup/Providers/FormatCodeCleanupProvider.cs @@ -22,7 +22,13 @@ public async Task CleanupAsync(Document document, IEnumerable