public bool ExecuteCommand(EscapeKeyCommandArgs args, CommandExecutionContext context)
        {
            var document = args.SubjectBuffer.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();

            return(document != null &&
                   RenameTrackingDismisser.DismissVisibleRenameTracking(document.Project.Solution.Workspace, document.Id));
        }
        public void ExecuteCommand(EscapeKeyCommandArgs args, Action nextHandler)
        {
            var document = args.SubjectBuffer.CurrentSnapshot.GetOpenDocumentInCurrentContextWithChanges();

            if (document != null &&
                RenameTrackingDismisser.DismissVisibleRenameTracking(document.Project.Solution.Workspace, document.Id))
            {
                return;
            }

            nextHandler();
        }