提交 c44e3517 编写于 作者: M Manish Vasani

Fixes

上级 514bb2e5
...@@ -270,17 +270,19 @@ private void DisconnectFromPresentationSource() ...@@ -270,17 +270,19 @@ private void DisconnectFromPresentationSource()
private void FindAdornmentCanvas_LayoutUpdated(object sender, EventArgs e) private void FindAdornmentCanvas_LayoutUpdated(object sender, EventArgs e)
=> PositionDashboard(); => PositionDashboard();
public static string RenameOverloads => EditorFeaturesResources.Include_overload_s; #pragma warning disable CA1822 // Mark members as static - used in xaml
public string RenameOverloads => EditorFeaturesResources.Include_overload_s;
public Visibility RenameOverloadsVisibility => _model.RenameOverloadsVisibility; public Visibility RenameOverloadsVisibility => _model.RenameOverloadsVisibility;
public bool IsRenameOverloadsEditable => _model.IsRenameOverloadsEditable; public bool IsRenameOverloadsEditable => _model.IsRenameOverloadsEditable;
public static string SearchInComments => EditorFeaturesResources.Include_comments; public string SearchInComments => EditorFeaturesResources.Include_comments;
public static string SearchInStrings => EditorFeaturesResources.Include_strings; public string SearchInStrings => EditorFeaturesResources.Include_strings;
public static string ApplyRename => EditorFeaturesResources.Apply1; public string ApplyRename => EditorFeaturesResources.Apply1;
public static string CancelRename => EditorFeaturesResources.Cancel; public string CancelRename => EditorFeaturesResources.Cancel;
public static string PreviewChanges => EditorFeaturesResources.Preview_changes1; public string PreviewChanges => EditorFeaturesResources.Preview_changes1;
public static string RenameInstructions => EditorFeaturesResources.Modify_any_highlighted_location_to_begin_renaming; public string RenameInstructions => EditorFeaturesResources.Modify_any_highlighted_location_to_begin_renaming;
public static string ApplyToolTip { get { return EditorFeaturesResources.Apply3 + " (Enter)"; } } public string ApplyToolTip { get { return EditorFeaturesResources.Apply3 + " (Enter)"; } }
public static string CancelToolTip { get { return EditorFeaturesResources.Cancel + " (Esc)"; } } public string CancelToolTip { get { return EditorFeaturesResources.Cancel + " (Esc)"; } }
#pragma warning restore CA1822 // Mark members as static
private void OnElementSizeChanged(object sender, SizeChangedEventArgs e) private void OnElementSizeChanged(object sender, SizeChangedEventArgs e)
{ {
......
...@@ -48,8 +48,7 @@ public InteractiveWindowCommandHandlerTestState(ExportProvider exportProvider, X ...@@ -48,8 +48,7 @@ public InteractiveWindowCommandHandlerTestState(ExportProvider exportProvider, X
GetExportedValue<ISendToInteractiveSubmissionProvider>(), GetExportedValue<ISendToInteractiveSubmissionProvider>(),
GetExportedValue<IContentTypeRegistryService>(), GetExportedValue<IContentTypeRegistryService>(),
GetExportedValue<IEditorOptionsFactoryService>(), GetExportedValue<IEditorOptionsFactoryService>(),
GetExportedValue<IEditorOperationsFactoryService>(), GetExportedValue<IEditorOperationsFactoryService>());
TestWaitIndicator.Default);
} }
public static InteractiveWindowCommandHandlerTestState CreateTestState(ExportProvider exportProvider, string markup) public static InteractiveWindowCommandHandlerTestState CreateTestState(ExportProvider exportProvider, string markup)
......
...@@ -22,9 +22,8 @@ internal class TestInteractiveCommandHandler : InteractiveCommandHandler ...@@ -22,9 +22,8 @@ internal class TestInteractiveCommandHandler : InteractiveCommandHandler
ISendToInteractiveSubmissionProvider sendToInteractiveSubmissionProvider, ISendToInteractiveSubmissionProvider sendToInteractiveSubmissionProvider,
IContentTypeRegistryService contentTypeRegistryService, IContentTypeRegistryService contentTypeRegistryService,
IEditorOptionsFactoryService editorOptionsFactoryService, IEditorOptionsFactoryService editorOptionsFactoryService,
IEditorOperationsFactoryService editorOperationsFactoryService, IEditorOperationsFactoryService editorOperationsFactoryService)
IWaitIndicator waitIndicator) : base(contentTypeRegistryService, editorOptionsFactoryService, editorOperationsFactoryService)
: base(contentTypeRegistryService, editorOptionsFactoryService, editorOperationsFactoryService, waitIndicator)
{ {
_interactiveWindow = interactiveWindow; _interactiveWindow = interactiveWindow;
_sendToInteractiveSubmissionProvider = sendToInteractiveSubmissionProvider; _sendToInteractiveSubmissionProvider = sendToInteractiveSubmissionProvider;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册