Hook up hover with new config

This commit is contained in:
Christopher Schleiden
2023-02-02 08:57:34 -08:00
parent cb71496867
commit 5acfa896b4
+4 -1
View File
@@ -124,8 +124,11 @@ export function initConnection(connection: Connection) {
});
connection.onHover(async ({position, textDocument}: HoverParams): Promise<Hover | null> => {
const repoContext = repos.find(repo => textDocument.uri.startsWith(repo.workspaceUri));
return hover(documents.get(textDocument.uri)!, position, {
descriptionProvider: descriptionProvider(client, cache)
descriptionProvider: descriptionProvider(client, cache),
contextProviderConfig: repoContext && contextProviders(client, repoContext, cache)
});
});