Update lsp to have set root path
This commit is contained in:
@@ -18,17 +18,7 @@ var server = await LanguageServer.From(options => options
|
||||
.WithHandler<HoverHandler>()
|
||||
.WithHandler<CompletionHandler>()
|
||||
.WithHandler<DefinitionHandler>()
|
||||
.OnInitialize((server, request, ct) =>
|
||||
{
|
||||
var workspaceManager = server.GetRequiredService<WorkspaceManager>();
|
||||
|
||||
if (request.RootPath != null)
|
||||
{
|
||||
workspaceManager.Init(request.RootPath);
|
||||
}
|
||||
|
||||
return Task.CompletedTask;
|
||||
})
|
||||
.WithHandler<SetRootPathCommandHandler>()
|
||||
);
|
||||
|
||||
await server.WaitForExit;
|
||||
Reference in New Issue
Block a user