// Must be called on the main thread, in a macro context // TODO: Still not sure how to delete / unregister... void RefreshProvider(object providerObj) { Debug.Assert(Thread.CurrentThread.ManagedThreadId == 1); IIntelliSenseProvider provider = (IIntelliSenseProvider)providerObj; provider.Refresh(); UpdateDisplay(provider); }
// Must be called on the main thread, in a macro context // TODO: Still not sure how to delete / unregister... void RefreshProvider(object providerObj) { Debug.Assert(Thread.CurrentThread.ManagedThreadId == 1); Logger.Provider.Verbose($"IntelliSenseHelper.RefreshProvider - Begin Refresh for {providerObj.GetType().Name}"); IIntelliSenseProvider provider = (IIntelliSenseProvider)providerObj; provider.Refresh(); UpdateDisplay(provider); Logger.Provider.Verbose($"IntelliSenseHelper.RefreshProvider - End"); }
void UpdateDisplay(IIntelliSenseProvider provider) { var functionInfos = provider.GetFunctionInfos(); _display.UpdateFunctionInfos(functionInfos); }
void UpdateDisplay(IIntelliSenseProvider provider) { var functionInfos = provider.GetFunctionInfos(); _display.UpdateFunctionInfos(functionInfos); }