public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.CanExecute(RoslynReplCommandConstants.RoslynReplGroup, (int)RoslynReplIds.SaveText) == CommandTargetStatus.Handled;
public override void Execute(ReplEditorCtxMenuContext context) => context.UI.TextView.Options.SetOptionValue(DefaultTextViewHostOptions.LineNumberMarginId, !context.UI.TextView.Options.IsLineNumberMarginEnabled());
public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.CanExecute(CommandConstants.StandardGroup, (int)StandardIds.Paste) == CommandTargetStatus.Handled;
public override void Execute(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.Execute(RoslynReplCommandConstants.RoslynReplGroup, (int)RoslynReplIds.SaveText);
public override void Execute(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.Execute(CommandConstants.ReplGroup, (int)ReplIds.CopyCode);
public override void Execute(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.Execute(CommandConstants.StandardGroup, (int)StandardIds.Paste);
public override void Execute(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.Execute(CommandConstants.TextEditorGroup, (int)TextEditorIds.TOGGLEWORDWRAP);
public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.CanReset;
public override bool IsEnabled(ReplEditorCtxMenuContext context) { return(context.VM.CanReset); }
public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.CanExecute(CommandConstants.ReplGroup, (int)ReplIds.ClearScreen) == CommandTargetStatus.Handled;
public override void Execute(ReplEditorCtxMenuContext context) { context.VM.Reset(); }
public override bool IsEnabled(ReplEditorCtxMenuContext context) { return(context.UI.CanClear); }
public override void Execute(ReplEditorCtxMenuContext context) { context.UI.Clear(); }
public override bool IsChecked(ReplEditorCtxMenuContext context) => context.UI.TextView.Options.IsLineNumberMarginEnabled();
public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.VM.ReplEditor.CommandTarget.CanExecute(CommandConstants.TextEditorGroup, (int)TextEditorIds.TOGGLEWORDWRAP) == CommandTargetStatus.Handled;
public override bool IsChecked(ReplEditorCtxMenuContext context) => (context.UI.TextView.Options.WordWrapStyle() & WordWrapStyles.WordWrap) != 0;
public override bool IsEnabled(ReplEditorCtxMenuContext context) => context.UI.CanClear;