public static void populateCachedListOfGacAssemblies() { if (O2GitHub.AssembliesCheckedIfExists.size() < 50) { var gacAssemblies = GacUtils.assemblyNames(); if (gacAssemblies.contains("Microsoft.mshtml")) // have to hard-code this one since there are cases where this is in the GAC but the load fails { gacAssemblies.Remove("Microsoft.mshtml"); } O2GitHub.AssembliesCheckedIfExists.add_OnlyNewItems(gacAssemblies); } }
public O2CodeCompletion(TextEditorControl textEditor, Action <string> status) { OnlyShowCodeCompleteResultsFromO2Namespace = false; //true; UseParseCodeThread = true; extraSourceCodeToProcess = new List <string>(); mappedCompilationUnits = new Dictionary <string, ICompilationUnit>(); gacAssemblies = GacUtils.assemblyNames(true); loadedReferences = new List <string>(); textEditor.invokeOnThread( () => { TextEditor = textEditor; statusMessage = status; loadIcons(); setupEnvironment(); }); }