csharp-language-server-protocol
csharp-language-server-protocol copied to clipboard
Retrieve project main class / class path
In a java language server there are plugins that allow extra functions like
vscode.java.resolveMainClass and vscode.java.resolveClasspath commands. Is there a similar one for C#?
This is a long shot seeing as how I don't know what those Java functions are doing, but could you perhaps be looking for IServiceProvider.GetService()? We use it do so something like:
WorkspaceService workspaceService = languageServer.Services.GetService<WorkspaceService>();
It resolves the instance of the "service" / class given the type, as long as it was previously registered.