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