Exemplo n.º 1
0
                public State(SuggestedActionsSource source, SuggestedActionsSourceProvider owner, ITextView textView, ITextBuffer textBuffer)
                {
                    _source = source;

                    Owner         = owner;
                    TextView      = textView;
                    SubjectBuffer = textBuffer;
                    Registration  = Workspace.GetWorkspaceRegistration(textBuffer.AsTextContainer());
                }
Exemplo n.º 2
0
        public static SuppressWarningAction Create(RapidXamlDisplayedTag tag, string file, SuggestedActionsSource suggestedActionsSource)
        {
            var result = new SuppressWarningAction(file)
            {
                Tag         = tag,
                DisplayText = StringRes.UI_SuggestedActionDoNotWarn.WithParams(tag.ErrorCode),
                ErrorCode   = tag.ErrorCode,
                Source      = suggestedActionsSource,
            };

            return(result);
        }