Esempio n. 1
0
 private void RemoveMarker(PackageReferenceMarker marker)
 {
     if (marker != null)
     {
         this._markers.Remove(marker);
         marker.MarkerInvalidated -= Marker_MarkerInvalidated;
         marker.BeforeBufferClose -= Marker_BeforeBufferClose;
         marker.Dispose();
     }
 }
Esempio n. 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();
     }
 }