Beispiel #1
0
        public void OnUpdateToggleErrorTextMarker(CommandInfo info)
        {
            var line = textEditor.GetLine(textEditor.CaretLine);

            if (line == null)
            {
                info.Visible = false;
                return;
            }

            var marker = (IMessageBubbleLineMarker)textEditor.GetLineMarkers(line).FirstOrDefault(m => m is IMessageBubbleLineMarker);

            info.Visible = marker != null;
        }