internal static void InitializeMarkerIds(JiraEditorLinksPackage package) { // Retrieve the Text Marker IDs. We need them to be able to create instances. IVsTextManager textManager = (IVsTextManager)package.GetService(typeof(SVsTextManager)); int markerId; Guid markerGuid = GuidList.JiraLinkBackgroundMarker; ErrorHandler.ThrowOnFailure(textManager.GetRegisteredMarkerTypeID(ref markerGuid, out markerId)); JiraLinkBackgroundMarkerType.Id = markerId; markerGuid = GuidList.JiraLinkMarginMarker; ErrorHandler.ThrowOnFailure(textManager.GetRegisteredMarkerTypeID(ref markerGuid, out markerId)); JiraLinkMarginMarkerType.Id = markerId; }
internal static void InitializeMarkerIds(JiraEditorLinksPackage package) { // Retrieve the Text Marker IDs. We need them to be able to create instances. IVsTextManager textManager = (IVsTextManager)package.GetService(typeof(SVsTextManager)); int markerId; Guid markerGuid = GuidList.JiraLinkBackgroundMarker; ErrorHandler.ThrowOnFailure(textManager.GetRegisteredMarkerTypeID(ref markerGuid, out markerId)); JiraLinkBackgroundMarkerType.Id = markerId; markerGuid = GuidList.JiraLinkMarginMarker; ErrorHandler.ThrowOnFailure(textManager.GetRegisteredMarkerTypeID(ref markerGuid, out markerId)); JiraLinkMarginMarkerType.Id = markerId; }