/// <summary> /// Searches the solution for natvis files, invoking the loader on any which are found. /// </summary> /// <param name="loader">Natvis loader method to invoke</param> public static void FindNatvisInSolution(NatvisLoader loader) { List<string> paths = new List<string>(); try { ThreadHelper.Generic.Invoke(() => Internal.FindNatvisInSolutionImpl(paths)); } catch (Exception) { } paths.ForEach((s) => loader(s)); }
public static void FindNatvisInSolution(NatvisLoader loader) { List <string> paths = new List <string>(); try { ThreadHelper.Generic.Invoke(() => Internal.FindNatvisInSolutionImpl(paths)); } catch (Exception) { } paths.ForEach((s) => loader(s)); }
public virtual NatvisLoader GetNatvisLoader() { if (_natvisLoader == null) { _natvisLoader = new NatvisLoader( GetJoinableTaskContext(), GetTaskExecutor(), GetNatvisDiagnosticLogger(), GetSolutionNatvisFileSource(), new NatvisValidator.Factory(GetFileSystem(), GetNatvisDiagnosticLogger()), GetWindowsRegistry(), GetFileSystem()); } return(_natvisLoader); }
/// <summary> /// Searches the solution for natvis files, invoking the loader on any which are found. /// </summary> /// <param name="loader">Natvis loader method to invoke</param> public static void FindNatvisInSolution(NatvisLoader loader) { List <string> paths = new List <string>(); try { ThreadHelper.JoinableTaskFactory.Run(async() => await Internal.FindNatvisInSolutionImplAsync(paths) ); } catch (Exception) { } paths.ForEach((s) => loader(s)); }
public void SetUp() { _traceLogSpy = new LogSpy(); _traceLogSpy.Attach(); var compRoot = new MediumTestDebugEngineFactoryCompRoot( null, new JoinableTaskContext(), new GameletClientStub.Factory(), Substitute.For <IWindowsRegistry>()); _natvisScanner = compRoot.GetNatvisVisualizerScanner(); _natvisLoader = compRoot.GetNatvisLoader(); _nLogSpy = compRoot.GetNatvisDiagnosticLogSpy(); _nLogSpy.Attach(); _natvisLogger = compRoot.GetNatvisDiagnosticLogger(); _mockRegistry = compRoot.GetWindowsRegistry(); _mockFileSystem = (MockFileSystem)compRoot.GetFileSystem(); }
public static void FindNatvisInSolution(NatvisLoader loader) { throw new NotImplementedException(); }
public static void FindNatvisInSolution(NatvisLoader loader) { // In-solution natvis is not supported for VS Code now, so do nothing. }