Example #1
0
        public void ShowBlame()
        {
            string path = dte.GetActiveDocument();

            if (!CanHandleActiveDocument(path))
            {
                return;
            }
            int?        lineNumber = dte.GetSelectedLine();
            BlameHelper helper     = new BlameHelper(Options, PortOptions);

            helper.ShowExternalBlame(path, lineNumber);
        }
Example #2
0
        public void ShowBlame()
        {
            string path = dte.GetActiveDocument();

            if (!CanHandleActiveDocument(path))
            {
                return;
            }


            int?        lineNumber = dte.GetSelectedLine();
            BlameHelper helper     = new BlameHelper(this);

            if (Options.BlameType == DXBlameType.External)
            {
                helper.ShowExternalBlame(path, lineNumber);
            }
            else
            {
                helper.ShowInternalBlame(path, lineNumber, model => internalBlameWindowAccessor().Initialize(model));
            }
        }