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

github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Osenkov <github@osenkov.com>2018-08-15 21:13:16 +0300
committerKirill Osenkov <github@osenkov.com>2018-08-15 21:13:16 +0300
commitb407d9744a34fd4647cf3e99068a28d728fd65a2 (patch)
treee6d6cef915f32dec4f2d16b1868045143deb589f /src/Text/Impl/TextBufferUndoManager/TextBufferUndoManagerProvider.cs
parentcf974b266fb428d846e2e16a25a4eeb8f635c26f (diff)
Updating to VS-Platform 15.8.519 (29d85337c7d2af248a692fd65ac37b444551e4cf).
Diffstat (limited to 'src/Text/Impl/TextBufferUndoManager/TextBufferUndoManagerProvider.cs')
-rw-r--r--src/Text/Impl/TextBufferUndoManager/TextBufferUndoManagerProvider.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/Text/Impl/TextBufferUndoManager/TextBufferUndoManagerProvider.cs b/src/Text/Impl/TextBufferUndoManager/TextBufferUndoManagerProvider.cs
index 72eb736..c5a4823 100644
--- a/src/Text/Impl/TextBufferUndoManager/TextBufferUndoManagerProvider.cs
+++ b/src/Text/Impl/TextBufferUndoManager/TextBufferUndoManagerProvider.cs
@@ -8,18 +8,19 @@
namespace Microsoft.VisualStudio.Text.BufferUndoManager.Implementation
{
using System;
- using System.Collections.Generic;
+ using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text;
- using Microsoft.VisualStudio.Text.Projection;
using Microsoft.VisualStudio.Text.Operations;
- using System.ComponentModel.Composition;
[Export(typeof(ITextBufferUndoManagerProvider))]
internal sealed class TextBufferUndoManagerProvider : ITextBufferUndoManagerProvider
{
[Import]
internal ITextUndoHistoryRegistry _undoHistoryRegistry { get; set; }
-
+#if false
+ [Import]
+ internal IEditorOperationsFactoryService _editorOperationsFactoryService { get; set; }
+#endif
/// <summary>
/// Provides an <see cref="ITextBufferUndoManager"/> for the given <paramref name="textBuffer"/>.
/// </summary>
@@ -31,13 +32,16 @@ namespace Microsoft.VisualStudio.Text.BufferUndoManager.Implementation
// Validate
if (textBuffer == null)
{
- throw new ArgumentNullException("textBuffer");
+ throw new ArgumentNullException(nameof(textBuffer));
}
// See if there was already a TextBufferUndoManager created for the given textBuffer, we only ever want to create one
ITextBufferUndoManager cachedBufferUndoManager;
if (!textBuffer.Properties.TryGetProperty<ITextBufferUndoManager>(typeof(ITextBufferUndoManager), out cachedBufferUndoManager))
{
+#if false
+ cachedBufferUndoManager = new TextBufferUndoManager(textBuffer, _undoHistoryRegistry, _editorOperationsFactoryService);
+#endif
cachedBufferUndoManager = new TextBufferUndoManager(textBuffer, _undoHistoryRegistry);
textBuffer.Properties.AddProperty(typeof(ITextBufferUndoManager), cachedBufferUndoManager);
}
@@ -54,7 +58,7 @@ namespace Microsoft.VisualStudio.Text.BufferUndoManager.Implementation
// Validate
if (textBuffer == null)
{
- throw new ArgumentNullException("textBuffer");
+ throw new ArgumentNullException(nameof(textBuffer));
}
ITextBufferUndoManager cachedBufferUndoManager;