public RemoteDiagnosticListTable(
            SVsServiceProvider serviceProvider, RemoteLanguageServiceWorkspace workspace, IDiagnosticService diagnosticService, ITableManagerProvider provider) :
            base(workspace, provider)
        {
            _source = new LiveTableDataSource(workspace, diagnosticService, IdentifierString);
            AddInitialTableSource(workspace.CurrentSolution, _source);

            ConnectWorkspaceEvents();
        }
 public RemoteLanguageServiceWorkspaceHost(RemoteLanguageServiceWorkspace remoteLanguageServiceWorkspace,
                                           RemoteProjectInfoProvider remoteProjectInfoProvider,
                                           SVsServiceProvider serviceProvider,
                                           IThreadingContext threadingContext)
 {
     _remoteLanguageServiceWorkspace = Requires.NotNull(remoteLanguageServiceWorkspace, nameof(remoteLanguageServiceWorkspace));
     _remoteProjectInfoProvider      = Requires.NotNull(remoteProjectInfoProvider, nameof(remoteProjectInfoProvider));
     _serviceProvider  = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     _threadingContext = Requires.NotNull(threadingContext, nameof(threadingContext));
 }
        public RemoteLanguageServiceWorkspaceHost(RemoteLanguageServiceWorkspace remoteLanguageServiceWorkspace,
                                                  RemoteProjectInfoProvider remoteProjectInfoProvider,
                                                  SVsServiceProvider serviceProvider,
                                                  IThreadingContext threadingContext)
        {
            _remoteLanguageServiceWorkspace = Requires.NotNull(remoteLanguageServiceWorkspace, nameof(remoteLanguageServiceWorkspace));
            _remoteProjectInfoProvider      = Requires.NotNull(remoteProjectInfoProvider, nameof(remoteProjectInfoProvider));
            _serviceProvider  = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
            _threadingContext = Requires.NotNull(threadingContext, nameof(threadingContext));

            var builder = ImmutableDictionary.CreateBuilder <string, string[]>(StringComparer.OrdinalIgnoreCase);

            builder.Add("TypeScript", new string[] { ".js", ".jsx", ".ts", ".tsx" });
            builder.Add("C#_Remote", new string[] { ".cs" });
            _projectLanguageToExtensionMap = builder.ToImmutable();
        }
Beispiel #4
0
 public RemoteDiagnosticListTable(
     SVsServiceProvider serviceProvider, RemoteLanguageServiceWorkspace workspace, IDiagnosticService diagnosticService, ITableManagerProvider provider) :
     this(workspace, diagnosticService, provider)
 {
     ConnectWorkspaceEvents();
 }