Ejemplo n.º 1
0
            private bool IsApplicable(CodeAction action, Workspace workspace)
            {
                if (!action.PerformFinalApplicabilityCheck)
                {
                    // If we don't even need to perform the final applicability check,
                    // then the code action is applicable.
                    return(true);
                }

                // Otherwise, defer to the action to make the decision.
                this.AssertIsForeground();
                return(action.IsApplicable(workspace));
            }