예제 #1
0
        public static bool NavigateToTextView(IServiceContainer services, IVsTextView vsTextView, int start, int length)
        {
            var adapterService = ComponentLocator <IVsEditorAdaptersFactoryService> .Import(services.GetService <ICompositionService>());

            var textView = adapterService?.GetWpfTextView(vsTextView);

            return(textView != null && NavigateToTextView(services, textView, start, length));
        }
예제 #2
0
        public static bool NavigateToTextView(IVsTextView vsTextView, int start, int length)
        {
            var adapterService = ComponentLocator <IVsEditorAdaptersFactoryService> .Import(VsAppShell.Current.GetService <ICompositionService>());

            if (adapterService != null)
            {
                var textView = adapterService.GetWpfTextView(vsTextView);
                if (textView != null)
                {
                    return(NavigateToTextView(textView, start, length));
                }
            }

            return(false);
        }
예제 #3
0
        public static bool NavigateToTextView(IVsTextView vsTextView, int start, int length)
        {
            IVsEditorAdaptersFactoryService adapterService = ComponentLocator <IVsEditorAdaptersFactoryService> .Import();

            if (adapterService != null)
            {
                ITextView textView = adapterService.GetWpfTextView(vsTextView);

                if (textView != null)
                {
                    return(NavigateToTextView(textView, start, length));
                }
            }

            return(false);
        }
예제 #4
0
        internal static void StaticFlushTaskList()
        {
            IEditorTaskList tasks = ComponentLocator <IEditorTaskList> .Import();

            tasks.FlushTaskList();
        }
예제 #5
0
        internal static void StaticFlushTaskList()
        {
            IEditorTaskList tasks = ComponentLocator <IEditorTaskList> .Import(VsAppShell.Current.CompositionService);

            tasks.FlushTaskList();
        }