Skip to content
This repository was archived by the owner on Jun 7, 2022. It is now read-only.

Commit 9027404

Browse files
committed
also shareReplay on hovers
1 parent 9f1bc45 commit 9027404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ export async function activate(ctx: sourcegraph.ExtensionContext): Promise<void>
540540
providers.add(
541541
sourcegraph.languages.registerHoverProvider(documentSelector, {
542542
provideHover: distinctUntilChanged(areProviderParamsEqual, (textDocument, position) =>
543-
observableFromAsyncIterable(provideHover(textDocument, position))
543+
observableFromAsyncIterable(provideHover(textDocument, position)).pipe(rxop.shareReplay(1))
544544
),
545545
})
546546
)

0 commit comments

Comments
 (0)