public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg) { SnapshotSpan selectionSpan = TextView.Selection.StreamSelectionSpan.SnapshotSpan; RCommenter.CommentBlock(TextView, TextView.TextBuffer, new TextRange(selectionSpan.Start.Position, selectionSpan.Length), Shell.Services); return(CommandResult.Executed); }
public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg) { var selectionSpan = TextView.Selection.StreamSelectionSpan.SnapshotSpan; RCommenter.CommentBlock(TextView.ToEditorView(), TextView.TextBuffer.ToEditorBuffer(), new TextRange(selectionSpan.Start.Position, selectionSpan.Length), Services.GetService <IEditorSupport>()); return(CommandResult.Executed); }