Example #1
0
        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();
 }
Example #3
0
 int IVsTextLines.CreateLineMarker(int iMarkerType,
             int iStartLine,
             int iStartIndex,
             int iEndLine,
             int iEndIndex,
             IVsTextMarkerClient pClient,
             IVsTextLineMarker[] ppMarker
     )
 {
     return VSConstants.E_NOTIMPL;
 }
Example #4
0
 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));
 }
Example #5
0
 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.");
 }
Example #6
0
 public int CreateLineMarker(int iMarkerType, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, IVsTextMarkerClient pClient, IVsTextLineMarker[] ppMarker) {
     throw new NotImplementedException();
 }
Example #7
0
 public int CreateStreamMarker(int iMarkerType, int iPos, int iLength, IVsTextMarkerClient pClient, IVsTextStreamMarker[] ppMarker) {
     throw new NotImplementedException();
 }
Example #8
0
 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;
 }
Example #10
0
 /// <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);
 }
Example #12
0
 public int CreateStreamMarker(int iMarkerType, int iPos, int iLength, IVsTextMarkerClient pClient, IVsTextStreamMarker[] ppMarker)
 {
     throw new NotImplementedException();
 }
Example #13
0
		public int CreateStreamMarker(int iMarkerType, int iPos, int iLength, IVsTextMarkerClient pClient, IVsTextStreamMarker[] ppMarker)
		{
			throw new Exception("The method or operation is not implemented.");
		}
Example #14
0
 public int CreateStreamMarker(int iMarkerType, int iPos, int iLength, IVsTextMarkerClient pClient, IVsTextStreamMarker[] ppMarker)
 {
     throw new Exception("The method or operation is not implemented.");
 }