private void OnOpenFile(IVsTextLines textLines, bool refresh) { if (!isDeleted && marker == null && textLines != null) { Common.Trace("Task.OnOpenFile: " + location); const MARKERTYPE MARKER_COMPILE_WARNING = (MARKERTYPE)11; MARKERTYPE mtype; switch (markerType) { case TaskMarker.CodeSense: mtype = MARKERTYPE.MARKER_CODESENSE_ERROR; break; case TaskMarker.Error: mtype = MARKERTYPE.MARKER_COMPILE_ERROR; break; case TaskMarker.Warning: mtype = MARKER_COMPILE_WARNING; break; case TaskMarker.Other: mtype = MARKERTYPE.MARKER_OTHER_ERROR; break; case TaskMarker.Invisible: mtype = MARKERTYPE.MARKER_INVISIBLE; break; default: if ((int)markerType < (int)MARKERTYPE.DEF_MARKER_COUNT) { mtype = (MARKERTYPE)markerType; } else { mtype = MARKERTYPE.MARKER_INVISIBLE; } break; // still create a marker to track position changes } IVsTextLineMarker[] markers = new IVsTextLineMarker[1]; TextSpan ts = location.TextSpan; IVsTextMarkerClient client = (taskManager.TrackMarkerEvents ? this : null); textLines.CreateLineMarker((int)mtype , ts.iStartLine, ts.iStartIndex, ts.iEndLine, ts.iEndIndex , client, markers); marker = markers[0]; if (marker == null) { Common.Trace("Task: failed to create marker at " + location); } } }
public int CreateLineMarker(int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker) { throw new NotImplementedException(); }
int IVsTextLines.CreateLineMarker(int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker ) { return VSConstants.E_NOTIMPL; }
public int CreateLineMarker( int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker) { return(_textBuffer.CreateLineMarker(iMarkerType, iStartLine, iStartIndex, iEndLine, iEndIndex, pClient, ppMarker)); }
public int CreateLineMarker(int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker) { throw new Exception("The method or operation is not implemented."); }
public int CreateStreamMarker(int iMarkerType, int iPos, int iLength, IVsTextMarkerClient pClient, IVsTextStreamMarker[] ppMarker) { throw new NotImplementedException(); }
public int CreateLineMarker(int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker) { return(VSConstants.S_OK); }
public int CreateLineMarker(int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker) { return VSConstants.S_OK; }
/// <summary> /// The create line marker. /// </summary> /// <param name="iMarkerType"> /// The i marker type. /// </param> /// <param name="iStartLine"> /// The i start line. /// </param> /// <param name="iStartIndex"> /// The i start index. /// </param> /// <param name="iEndLine"> /// The i end line. /// </param> /// <param name="iEndIndex"> /// The i end index. /// </param> /// <param name="pClient"> /// The p client. /// </param> /// <param name="ppMarker"> /// The pp marker. /// </param> /// <returns> /// The create line marker. /// </returns> /// <exception cref="Exception"> /// </exception> public int CreateLineMarker(int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker) { throw new Exception("The method or operation is not implemented."); }
public int CreateLineMarker( int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker) { return _textBuffer.CreateLineMarker(iMarkerType, iStartLine, iStartIndex, iEndLine, iEndIndex, pClient, ppMarker); }
public int CreateStreamMarker(int iMarkerType, int iPos, int iLength, IVsTextMarkerClient pClient, IVsTextStreamMarker[] ppMarker) { throw new Exception("The method or operation is not implemented."); }