internal Workspace(VisualStudioInstance visualStudioInstance) { _visualStudioInstance = visualStudioInstance; var integrationService = _visualStudioInstance.IntegrationService; _workspaceWrapper = integrationService.Execute<WorkspaceWrapper>(typeof(WorkspaceWrapper), nameof(WorkspaceWrapper.Create)); }
internal EditorWindow(VisualStudioInstance visualStudioInstance) { _visualStudioInstance = visualStudioInstance; var integrationService = _visualStudioInstance.IntegrationService; _editorWindowWrapper = integrationService.Execute<EditorWindowWrapper>(typeof(EditorWindowWrapper), nameof(EditorWindowWrapper.Create), (BindingFlags.Public | BindingFlags.Static)); }
internal EditorWindow(VisualStudioInstance visualStudioInstance) { _visualStudioInstance = visualStudioInstance; var integrationService = _visualStudioInstance.IntegrationService; _editorWindowWrapper = integrationService.Execute <EditorWindowWrapper>(typeof(EditorWindowWrapper), nameof(EditorWindowWrapper.Create), (BindingFlags.Public | BindingFlags.Static)); }
internal Workspace(VisualStudioInstance visualStudioInstance) { _visualStudioInstance = visualStudioInstance; var integrationService = _visualStudioInstance.IntegrationService; _workspaceWrapper = integrationService.Execute <WorkspaceWrapper>(typeof(WorkspaceWrapper), nameof(WorkspaceWrapper.Create)); }
internal InteractiveWindow(VisualStudioInstance visualStudioInstance, string dteViewCommand, string dteWindowTitle, string createMethodName) { _visualStudioInstance = visualStudioInstance; _dteViewCommand = dteViewCommand; // We have to show the window at least once to ensure the interactive service is loaded. ShowAsync(waitForPrompt: false).GetAwaiter().GetResult(); var dteWindow = IntegrationHelper.WaitForNotNullAsync(() => _visualStudioInstance.Dte.LocateWindow(dteWindowTitle)).GetAwaiter().GetResult(); IntegrationHelper.RetryRpcCall(() => dteWindow.Close()); // Return a wrapper to the actual interactive window service that exists in the host process var integrationService = _visualStudioInstance.IntegrationService; _interactiveWindowWrapper = integrationService.Execute<InteractiveWindowWrapper>(typeof(InteractiveWindowWrapper), createMethodName); }
internal InteractiveWindow(VisualStudioInstance host, string dteViewCommand, string dteWindowTitle) { _host = host; _dteViewCommand = dteViewCommand; // We have to show the window at least once to ensure the interactive service is loaded. ShowAsync(waitForPrompt: false).GetAwaiter().GetResult(); var dteWindow = _host.LocateDteWindowAsync(dteWindowTitle).GetAwaiter().GetResult(); dteWindow.Close(); // Return a wrapper to the actual interactive window service that exists in the host process _interactiveWindowWrapper = _host.ExecuteOnHostProcess <InteractiveWindowWrapper>(typeof(RemotingHelper), nameof(RemotingHelper.CreateCSharpInteractiveWindowWrapper), (BindingFlags.Public | BindingFlags.Static)); }
internal InteractiveWindow(VisualStudioInstance visualStudioInstance, string dteViewCommand, string dteWindowTitle, string createMethodName) { _visualStudioInstance = visualStudioInstance; _dteViewCommand = dteViewCommand; // We have to show the window at least once to ensure the interactive service is loaded. ShowAsync(waitForPrompt: false).GetAwaiter().GetResult(); var dteWindow = IntegrationHelper.WaitForNotNullAsync(() => _visualStudioInstance.Dte.LocateWindow(dteWindowTitle)).GetAwaiter().GetResult(); IntegrationHelper.RetryRpcCall(() => dteWindow.Close()); // Return a wrapper to the actual interactive window service that exists in the host process var integrationService = _visualStudioInstance.IntegrationService; _interactiveWindowWrapper = integrationService.Execute <InteractiveWindowWrapper>(typeof(InteractiveWindowWrapper), createMethodName); }
public CSharpInteractiveWindow(VisualStudioInstance visualStudioInstance) : base(visualStudioInstance, DteViewCommand, DteWindowTitle, CreateMethodName) { }
// TODO: Integrate with the SolutionExplorer service internal SolutionExplorer(VisualStudioInstance visualStudio) { _visualStudio = visualStudio; }
internal VisualStudioInstanceContext(VisualStudioInstance instance, VisualStudioInstanceFactory instanceFactory) { this.Instance = instance; _instanceFactory = instanceFactory; }
internal EditorWindow(VisualStudioInstance visualStudio) { _visualStudio = visualStudio; }
/// <summary>Creates a <see cref="InteractiveWindow"/> instance that can interact with the C# interactive window in the Visual Studio host.</summary> internal static InteractiveWindow CreateCSharpInteractiveWindow(VisualStudioInstance host) => new InteractiveWindow(host, DteCSharpViewCommand, DteCSharpWindowTitle);