Exemple #1
0
 private void RemoveMarker(PackageReferenceMarker marker)
 {
     if (marker != null)
     {
         this._markers.Remove(marker);
         marker.MarkerInvalidated -= Marker_MarkerInvalidated;
         marker.BeforeBufferClose -= Marker_BeforeBufferClose;
         marker.Dispose();
     }
 }
Exemple #2
0
        private void CreateMarker(IVsTextLines buffer, PackageReference packageReference)
        {
            var marker = new PackageReferenceMarker(_taskProvider, packageReference);

            marker.MarkerInvalidated += Marker_MarkerInvalidated;
            marker.BeforeBufferClose += Marker_BeforeBufferClose;

            marker.CreateTextLineMarker(buffer);

            _markers.Add(marker);
        }
        private void CreateMarker(IVsTextLines buffer, PackageReference packageReference)
        {
            var marker = new PackageReferenceMarker(_taskProvider, packageReference);

            marker.MarkerInvalidated += Marker_MarkerInvalidated;
            marker.BeforeBufferClose += Marker_BeforeBufferClose;

            marker.CreateTextLineMarker(buffer);

            _markers.Add(marker);
        }
 private void RemoveMarker(PackageReferenceMarker marker)
 {
     if (marker != null)
     {
         this._markers.Remove(marker);
         marker.MarkerInvalidated -= Marker_MarkerInvalidated;
         marker.BeforeBufferClose -= Marker_BeforeBufferClose;
         marker.Dispose();
     }
 }