Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 5454f45

Browse files
Merge pull request #9154 from mono/backport-pr-9151-to-release-8.4
[release-8.4] Bump Roslyn to 3.4.0-beta3-19525-13
2 parents 9f335aa + cf3e82f commit 5454f45

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

main/msbuild/RoslynVersion.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<NuGetVersionRoslyn>3.4.0-beta3-19518-02</NuGetVersionRoslyn>
3+
<NuGetVersionRoslyn>3.4.0-beta3-19525-13</NuGetVersionRoslyn>
44
</PropertyGroup>
55
</Project>

main/src/core/Mono.TextEditor.Shared/Mono.TextEditor/Document/TextDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ public TextDocument (string text = null, string fileName = null, string mimeType
343343
this.mimeType = mimeType;
344344
var doc = PlatformCatalog.Instance.TextDocumentFactoryService.CreateTextDocument (
345345
PlatformCatalog.Instance.TextBufferFactoryService.CreateTextBuffer (
346-
text ?? string.Empty,
346+
new StringReader(text ?? string.Empty),
347347
GetContentTypeFromMimeType (fileName, mimeType)
348348
),
349349
fileName ?? string.Empty

main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Documents/TextBufferFileModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected override async Task OnLoad ()
8080
ThawChangeEvent ();
8181
}
8282
} else {
83-
var buffer = PlatformCatalog.Instance.TextBufferFactoryService.CreateTextBuffer (text.Text, contentType);
83+
var buffer = PlatformCatalog.Instance.TextBufferFactoryService.CreateTextBuffer (new System.IO.StringReader (text.Text), contentType);
8484
var doc = PlatformCatalog.Instance.TextDocumentFactoryService.CreateTextDocument (buffer, FilePath);
8585
doc.Encoding = text.Encoding;
8686
SetTextDocument (doc);

0 commit comments

Comments
 (0)