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

            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();
        }
Esempio n. 2
0
 public RemoteDiagnosticListTable(
     SVsServiceProvider serviceProvider, RemoteLanguageServiceWorkspace workspace, IDiagnosticService diagnosticService, ITableManagerProvider provider) :
     this(workspace, diagnosticService, provider)
 {
     ConnectWorkspaceEvents();
 }