public State(SuggestedActionsSource source, SuggestedActionsSourceProvider owner, ITextView textView, ITextBuffer textBuffer) { _source = source; Owner = owner; TextView = textView; SubjectBuffer = textBuffer; Registration = Workspace.GetWorkspaceRegistration(textBuffer.AsTextContainer()); }
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); }