public RenamerProjectTreeActionHandler(
     UnconfiguredProject unconfiguredProject,
     IUnconfiguredProjectVsServices projectVsServices,
     [Import(typeof(VisualStudioWorkspace))] Workspace workspace,
     IEnvironmentOptions environmentOptions,
     IUserNotificationServices userNotificationServices,
     IRoslynServices roslynServices,
     IWaitIndicator waitService,
     IVsOnlineServices vsOnlineServices,
     IProjectThreadingService threadingService,
     IVsUIService <IVsExtensibility, IVsExtensibility3> extensibility,
     IVsService <SVsOperationProgress, IVsOperationProgressStatusService> operationProgressService,
     IVsService <SVsSettingsPersistenceManager, ISettingsManager> settingsManagerService)
 {
     _unconfiguredProject      = unconfiguredProject;
     _projectVsServices        = projectVsServices;
     _workspace                = workspace;
     _environmentOptions       = environmentOptions;
     _userNotificationServices = userNotificationServices;
     _roslynServices           = roslynServices;
     _waitService              = waitService;
     _vsOnlineServices         = vsOnlineServices;
     _threadingService         = threadingService;
     _extensibility            = extensibility;
     _operationProgressService = operationProgressService;
     _settingsManagerService   = settingsManagerService;
 }
 public ProjectSystemOptions(IProjectService projectService, IVsUIService <SVsSettingsPersistenceManager, ISettingsManager> settingsManager, JoinableTaskContext joinableTaskContext)
 {
     _projectService             = projectService;
     _settingsManager            = settingsManager;
     _joinableTaskContext        = joinableTaskContext;
     _isProjectOutputPaneEnabled = new Lazy <bool>(() => _projectService.Capabilities.Contains(ServiceCapability.DiagnosticRuntimeServiceCapability));
 }
 public SolutionExplorerWindow(
     IProjectThreadingService threadingService,
     IVsUIService <SVsUIShell, IVsUIShell> shell)
 {
     _solutionExplorer = new Lazy <IVsUIHierarchyWindow2?>(() => GetUIHierarchyWindow(shell, s_solutionExplorer));
     _threadingService = threadingService;
 }
        public ProjectLaunchTargetsProvider(
            IUnconfiguredProjectVsServices unconfiguredProjectVsServices,
            ConfiguredProject project,
            IDebugTokenReplacer tokenReplacer,
            IFileSystem fileSystem,
            IEnvironmentHelper environment,
            IActiveDebugFrameworkServices activeDebugFramework,
            ProjectProperties properties,
            IProjectThreadingService threadingService,
            IVsUIService <SVsShellDebugger, IVsDebugger10> debugger,
            IRemoteDebuggerAuthenticationService remoteDebuggerAuthenticationService,
            Lazy <IProjectHotReloadSessionManager> hotReloadSessionManager,
            Lazy <IHotReloadOptionService> debuggerSettings)
        {
            _project = project;
            _unconfiguredProjectVsServices = unconfiguredProjectVsServices;
            _tokenReplacer        = tokenReplacer;
            _fileSystem           = fileSystem;
            _environment          = environment;
            _activeDebugFramework = activeDebugFramework;
            _threadingService     = threadingService;
            _debugger             = debugger;
            _remoteDebuggerAuthenticationService = remoteDebuggerAuthenticationService;
            _hotReloadSessionManager             = hotReloadSessionManager;
            _debuggerSettings = debuggerSettings;

            _outputTypeChecker = new OutputTypeChecker(properties);
        }
Ejemplo n.º 5
0
 public IncrementalBuildFailureTelemetryReporter(
     UnconfiguredProject project,
     IVsUIService <SVsFeatureFlags, IVsFeatureFlags> featureFlagsService)
 {
     _project             = project;
     _featureFlagsService = featureFlagsService;
 }
 public StartupProjectHelper(IVsUIService <SDTE, DTE> dte,
                             IVsUIService <SVsSolution, IVsSolution> solution,
                             IProjectExportProvider projectExportProvider)
 {
     _dte      = dte;
     _solution = solution;
     _projectExportProvider = projectExportProvider;
 }
Ejemplo n.º 7
0
 public AbstractAddItemCommandHandler(ConfiguredProject configuredProject, IPhysicalProjectTree projectTree, IUnconfiguredProjectVsServices projectVsServices, IVsUIService <IVsAddProjectItemDlg> addItemDialog, IVsUIService <SVsShell, IVsShell> vsShell)
 {
     _configuredProject = configuredProject;
     _projectTree       = projectTree;
     _projectVsServices = projectVsServices;
     _addItemDialog     = addItemDialog;
     _vsShell           = vsShell;
 }
 public StandardCommandSet97GroupHandler(
     [Import(typeof(SVsServiceProvider))] IServiceProvider serviceProvider,
     ConfiguredProject configuredProject,
     IVsUIService <SVsUIShellOpenDocument, IVsUIShellOpenDocument> uiShellOpenDocument,
     IVsUIService <SVsExternalFilesManager, IVsExternalFilesManager> externalFilesManager,
     IVsUIService <IOleServiceProvider> oleServiceProvider)
     : base(serviceProvider, configuredProject, uiShellOpenDocument, externalFilesManager, oleServiceProvider)
 {
 }
 public RemoteDebuggerAuthenticationService(
     UnconfiguredProject unconfiguredProject,
     IVsUIService <SVsDebugRemoteDiscoveryUI, IVsDebugRemoteDiscoveryUI> remoteDiscoveryUIService,
     IProjectThreadingService threadingService)
 {
     _remoteDiscoveryUIService = remoteDiscoveryUIService;
     _threadingService         = threadingService;
     AuthenticationProviders   = new OrderPrecedenceImportCollection <IRemoteAuthenticationProvider>(orderingStyle: ImportOrderPrecedenceComparer.PreferenceOrder.PreferredComesLast, projectCapabilityCheckProvider: unconfiguredProject);
 }
Ejemplo n.º 10
0
        protected AbstractAddClassProjectCommand(IPhysicalProjectTree projectTree, IUnconfiguredProjectVsServices projectVsServices, IVsUIService <IVsAddProjectItemDlg> addItemDialog)
        {
            Requires.NotNull(projectTree, nameof(projectTree));
            Requires.NotNull(projectVsServices, nameof(projectVsServices));
            Requires.NotNull(addItemDialog, nameof(addItemDialog));

            _projectTree       = projectTree;
            _projectVsServices = projectVsServices;
            _addItemDialog     = addItemDialog;
        }
Ejemplo n.º 11
0
 public IncrementalBuildFailureOutputWindowReporter(
     UnconfiguredProject project,
     IVsUIService <SVsFeatureFlags, IVsFeatureFlags> featureFlagsService,
     IVsUIService <SVsOutputWindow, IVsOutputWindow> outputWindow,
     IProjectSystemOptions projectSystemOptions)
 {
     _project              = project;
     _featureFlagsService  = featureFlagsService;
     _outputWindow         = outputWindow;
     _projectSystemOptions = projectSystemOptions;
 }
        private static IVsUIHierarchyWindow2?GetUIHierarchyWindow(IVsUIService <IVsUIShell> shell, Guid persistenceSlot)
        {
            if (ErrorHandler.Succeeded(shell.Value.FindToolWindow(0, ref persistenceSlot, out IVsWindowFrame? frame)) && frame != null)
            {
                ErrorHandler.ThrowOnFailure(frame.GetProperty((int)__VSFPROPID.VSFPROPID_DocView, out object?view));

                return((IVsUIHierarchyWindow2)view);
            }

            // Command-line/non-UI mode
            return(null);
        }
            public ProjectChecker(
                UnconfiguredProject project,
                IVsUIService <SVsFeatureFlags, IVsFeatureFlags> featureFlagsService,
                IActiveConfiguredValue <IBuildUpToDateCheckValidator> upToDateCheckValidator,
                [Import(ExportContractNames.Scopes.UnconfiguredProject)] IProjectAsynchronousTasksService projectAsynchronousTasksService,
                IVsUIService <SVsOutputWindow, IVsOutputWindow> outputWindow)
            {
                _project = project;
                _upToDateCheckValidator          = upToDateCheckValidator;
                _projectAsynchronousTasksService = projectAsynchronousTasksService;

                Reporters = new OrderPrecedenceImportCollection <IIncrementalBuildFailureReporter>(projectCapabilityCheckProvider: project);
            }
Ejemplo n.º 14
0
 public TestRenamerProjectTreeActionHandler(
     UnconfiguredProject unconfiguredProject,
     IUnconfiguredProjectVsServices projectVsServices,
     [Import(typeof(VisualStudioWorkspace))] Workspace workspace,
     IEnvironmentOptions environmentOptions,
     IUserNotificationServices userNotificationServices,
     IRoslynServices roslynServices,
     IWaitIndicator waitService,
     IVsOnlineServices vsOnlineServices,
     IProjectThreadingService threadingService,
     IVsUIService <IVsExtensibility, IVsExtensibility3> extensibility,
     IVsService <SVsOperationProgress, IVsOperationProgressStatusService> operationProgressService) :
     base(unconfiguredProject, projectVsServices, workspace, environmentOptions, userNotificationServices, roslynServices, waitService,
          vsOnlineServices, threadingService, extensibility, operationProgressService)
 {
 }
 public ConsoleDebugTargetsProvider(UnconfiguredProject project,
                                    IDebugTokenReplacer tokenReplacer,
                                    IFileSystem fileSystem,
                                    IEnvironmentHelper environment,
                                    IActiveDebugFrameworkServices activeDebugFramework,
                                    ProjectProperties properties,
                                    IProjectThreadingService threadingService,
                                    IVsUIService <SVsShellDebugger, IVsDebugger10> debugger)
 {
     _tokenReplacer        = tokenReplacer;
     _fileSystem           = fileSystem;
     _environment          = environment;
     _activeDebugFramework = activeDebugFramework;
     _properties           = properties;
     _threadingService     = threadingService;
     _debugger             = debugger;
     _project = project;
 }
 public TestRenamerProjectTreeActionHandler(
     UnconfiguredProject unconfiguredProject,
     IUnconfiguredProjectVsServices projectVsServices,
     [Import(typeof(VisualStudioWorkspace))] Workspace workspace,
     IEnvironmentOptions environmentOptions,
     IUserNotificationServices userNotificationServices,
     IRoslynServices roslynServices,
     IWaitIndicator waitService,
     IVsOnlineServices vsOnlineServices,
     [Import(ExportContractNames.Scopes.UnconfiguredProject)] IProjectAsynchronousTasksService projectAsynchronousTasksService,
     IProjectThreadingService threadingService,
     IVsUIService <IVsExtensibility, IVsExtensibility3> extensibility,
     IVsService <SVsOperationProgress, IVsOperationProgressStatusService> operationProgressService,
     IVsService <SVsSettingsPersistenceManager, ISettingsManager> settingsManagerService) :
     base(unconfiguredProject, projectVsServices, workspace, environmentOptions, userNotificationServices, roslynServices, waitService,
          vsOnlineServices, projectAsynchronousTasksService, threadingService, extensibility, operationProgressService, settingsManagerService)
 {
 }
        protected ProjectImportsCommandGroupHandlerBase(
            IServiceProvider serviceProvider,
            ConfiguredProject configuredProject,
            IVsUIService <IVsUIShellOpenDocument> uiShellOpenDocument,
            IVsUIService <IVsExternalFilesManager> externalFilesManager,
            IVsUIService <IOleServiceProvider> oleServiceProvider)
        {
            Requires.NotNull(serviceProvider, nameof(serviceProvider));
            Requires.NotNull(configuredProject, nameof(configuredProject));
            Requires.NotNull(uiShellOpenDocument, nameof(uiShellOpenDocument));
            Requires.NotNull(externalFilesManager, nameof(externalFilesManager));
            Requires.NotNull(oleServiceProvider, nameof(oleServiceProvider));

            _serviceProvider      = serviceProvider;
            _configuredProject    = configuredProject;
            _uiShellOpenDocument  = uiShellOpenDocument;
            _externalFilesManager = externalFilesManager;
            _oleServiceProvider   = oleServiceProvider;
        }
Ejemplo n.º 18
0
 internal Renamer(IUnconfiguredProjectVsServices projectVsServices,
                  IUnconfiguredProjectTasksService unconfiguredProjectTasksService,
                  [Import(typeof(VisualStudioWorkspace))] Workspace workspace,
                  IVsUIService <Shell.Interop.SDTE, DTE> dte,
                  IEnvironmentOptions environmentOptions,
                  IUserNotificationServices userNotificationServices,
                  IRoslynServices roslynServices,
                  IWaitIndicator waitService,
                  IRefactorNotifyService refactorNotifyService)
 {
     _projectVsServices = projectVsServices;
     _unconfiguredProjectTasksService = unconfiguredProjectTasksService;
     _workspace                = workspace;
     _dte                      = dte;
     _environmentOptions       = environmentOptions;
     _userNotificationServices = userNotificationServices;
     _roslynServices           = roslynServices;
     _waitService              = waitService;
     _refactorNotifyService    = refactorNotifyService;
 }
Ejemplo n.º 19
0
 public ProjectLaunchTargetsProvider(
     IUnconfiguredProjectVsServices unconfiguredProjectVsServices,
     ConfiguredProject project,
     IDebugTokenReplacer tokenReplacer,
     IFileSystem fileSystem,
     IEnvironmentHelper environment,
     IActiveDebugFrameworkServices activeDebugFramework,
     ProjectProperties properties,
     IProjectThreadingService threadingService,
     IVsUIService <SVsShellDebugger, IVsDebugger10> debugger,
     IRemoteDebuggerAuthenticationService remoteDebuggerAuthenticationService)
 {
     _project = project;
     _unconfiguredProjectVsServices = unconfiguredProjectVsServices;
     _tokenReplacer        = tokenReplacer;
     _fileSystem           = fileSystem;
     _environment          = environment;
     _activeDebugFramework = activeDebugFramework;
     _properties           = properties;
     _threadingService     = threadingService;
     _debugger             = debugger;
     _remoteDebuggerAuthenticationService = remoteDebuggerAuthenticationService;
 }
Ejemplo n.º 20
0
 public ProjectSystemOptions(IEnvironmentHelper environment, IVsUIService <SVsSettingsPersistenceManager, ISettingsManager> settingsManager, JoinableTaskContext joinableTaskContext)
 {
     _environment         = environment;
     _settingsManager     = settingsManager;
     _joinableTaskContext = joinableTaskContext;
 }
Ejemplo n.º 21
0
 public WPFAddItemCommandHandler(ConfiguredProject configuredProject, IAddItemDialogService addItemDialogService, IVsUIService <SVsShell, IVsShell> vsShell)
     : base(configuredProject, addItemDialogService, vsShell)
 {
 }
 public CreateFileFromTemplateService(IUnconfiguredProjectVsServices projectVsServices, IVsUIService <SDTE, DTE2> dte, ProjectProperties properties)
 {
     _projectVsServices = projectVsServices;
     _dte        = dte;
     _properties = properties;
 }
Ejemplo n.º 23
0
 public VsSolutionEventListener(IVsUIService <SVsSolution, IVsSolution> solution, JoinableTaskContext joinableTaskContext)
     : base(new JoinableTaskContextNode(joinableTaskContext))
 {
     _solution = solution;
 }
 internal override AbstractAddClassProjectCommand CreateInstance(IPhysicalProjectTree tree, IUnconfiguredProjectVsServices services, IVsUIService <SVsAddProjectItemDlg, IVsAddProjectItemDlg> addItemDialog)
 {
     return(new AddClassProjectCSharpCommand(tree, services, addItemDialog));
 }
Ejemplo n.º 25
0
 public VisualStudioWaitIndicator(JoinableTaskContext joinableTaskContext,
                                  IVsUIService <SVsThreadedWaitDialogFactory, IVsThreadedWaitDialogFactory> waitDialogFactoryService)
 {
     _joinableTaskContext      = joinableTaskContext;
     _waitDialogFactoryService = waitDialogFactoryService;
 }
Ejemplo n.º 26
0
 public AddItemDialogService(IUnconfiguredProjectVsServices unconfiguredProjectVsServices, IPhysicalProjectTree projectTree, IVsUIService <SVsAddProjectItemDlg, IVsAddProjectItemDlg> addProjectItemDialog)
 {
     _projectVsServices    = unconfiguredProjectVsServices;
     _projectTree          = projectTree;
     _addProjectItemDialog = addProjectItemDialog;
 }
Ejemplo n.º 27
0
 public ProjectSystemOptions(IVsUIService <SVsSettingsPersistenceManager, ISettingsManager> settingsManager, JoinableTaskContext joinableTaskContext)
 {
     _settingsManager     = settingsManager;
     _joinableTaskContext = joinableTaskContext;
 }
 public VisualStudioRefactorNotifyService(IVsUIService <SDTE, DTE> dte, IVsUIService <SVsSolution, IVsSolution> solution)
 {
     _dte      = dte;
     _solution = solution;
 }
Ejemplo n.º 29
0
 public DteEnvironmentOptions(IVsUIService <SDTE, DTE2> dte)
 {
     _dte = dte;
 }
 public VS2kAddItemCommandHandler(ConfiguredProject configuredProject, IPhysicalProjectTree projectTree, IUnconfiguredProjectVsServices projectVsServices, IVsUIService <IVsAddProjectItemDlg> addItemDialog, IVsUIService <SVsShell, IVsShell> vsShell)
     : base(configuredProject, projectTree, projectVsServices, addItemDialog, vsShell)
 {
 }