23 references to LanguageServerHost
Microsoft.CodeAnalysis.LanguageServer (23)
HostWorkspace\FileWatching\DelegatingFileChangeWatcher.cs (2)
35var instance = LanguageServerHost.Instance;
HostWorkspace\FileWatching\LspFileChangeWatcher.cs (2)
27public LspFileChangeWatcher(LanguageServerHost languageServerHost, IAsynchronousOperationListenerProvider asynchronousOperationListenerProvider) 36public static bool SupportsLanguageServerHost(LanguageServerHost languageServerHost)
HostWorkspace\ProjectDependencyHelper.cs (2)
128Contract.ThrowIfNull(LanguageServerHost.Instance, "We don't have an LSP channel yet to send this request through."); 130var languageServerManager = LanguageServerHost.Instance.GetRequiredLspService<IClientLanguageServerManager>();
HostWorkspace\ProjectInitializationHandler.cs (2)
47Contract.ThrowIfNull(LanguageServerHost.Instance, "We don't have an LSP channel yet to send this request through."); 48var languageServerManager = LanguageServerHost.Instance.GetRequiredLspService<IClientLanguageServerManager>();
HostWorkspace\ProjectTelemetry\ProjectLoadTelemetryReporter.cs (2)
93var instance = LanguageServerHost.Instance;
HostWorkspace\Razor\RazorDynamicFileInfoProvider.cs (4)
67Contract.ThrowIfNull(LanguageServerHost.Instance, "We don't have an LSP channel yet to send this request through."); 68var clientLanguageServerManager = LanguageServerHost.Instance.GetRequiredLspService<IClientLanguageServerManager>(); 120Contract.ThrowIfNull(LanguageServerHost.Instance, "We don't have an LSP channel yet to send this request through."); 121var clientLanguageServerManager = LanguageServerHost.Instance.GetRequiredLspService<IClientLanguageServerManager>();
HostWorkspace\Razor\RazorDynamicFileInfoProvider.TextChangesTextLoader.cs (2)
79Contract.ThrowIfNull(LanguageServerHost.Instance, "We don't have an LSP channel yet to send this request through."); 80var clientLanguageServerManager = LanguageServerHost.Instance.GetRequiredLspService<IClientLanguageServerManager>();
LanguageServer\LanguageServerHost.cs (1)
24internal static LanguageServerHost? Instance { get; private set; }
Logging\LspLogMessageLogger.cs (2)
38var server = LanguageServerHost.Instance;
Logging\ShowToastNotification.cs (2)
30Contract.ThrowIfNull(LanguageServerHost.Instance, "We don't have an LSP channel yet to send this request through."); 31var languageServerManager = LanguageServerHost.Instance.GetRequiredLspService<IClientLanguageServerManager>();
Program.cs (2)
126var languageServerLogger = loggerFactory.CreateLogger(nameof(LanguageServerHost)); 144var server = new LanguageServerHost(pipeServer, pipeServer, exportProvider, languageServerLogger, typeRefResolver);