Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <llsan@microsoft.com>2018-01-30 18:28:42 +0300
committerGitHub <noreply@github.com>2018-01-30 18:28:42 +0300
commitb07492f1e48be596bad92dc4b7a3bc2d128ed0f9 (patch)
tree11a956cfbcedbb1c124af41b4d0e76a8b251b88f
parent7dad7a4601905da9b9e816c6706c85913349eb44 (diff)
parent99984a9779868fa07ed9e1bc94d05682ca84a656 (diff)
Merge pull request #3746 from mono/dev/kirillo/fix524616d15-5monodevelop-7.3.3.12
Fixes VSTS 524616 - can't refresh the website successfully after deleā€¦
-rw-r--r--main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Document/TextDocument.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Document/TextDocument.cs b/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Document/TextDocument.cs
index d9e440a2e2..023cea2ca4 100644
--- a/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Document/TextDocument.cs
+++ b/main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Document/TextDocument.cs
@@ -234,7 +234,6 @@ namespace Mono.TextEditor
{
if (args.Changes == null)
return;
- cachedText = null;
var changes = new List<TextChange> ();
foreach (var change in args.Changes) {
changes.Add (new TextChange (change.OldPosition, change.NewPosition, change.OldText, change.NewText));
@@ -337,16 +336,10 @@ namespace Mono.TextEditor
public bool SuppressHighlightUpdate { get; set; }
internal DocumentLine longestLineAtTextSet;
- WeakReference cachedText;
public string Text {
get {
- string completeText = cachedText != null ? (cachedText.Target as string) : null;
- if (completeText == null) {
- completeText = this.currentSnapshot.GetText ();
- cachedText = new WeakReference(completeText);
- }
- return completeText;
+ return this.currentSnapshot.GetText ();
}
set {
var tmp = IsReadOnly;