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

Commit 8abea5d

Browse files
authored
Fix basic code intel definitions (#246)
1 parent 4cfedf9 commit 8abea5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/src/extension.ts

Lines changed: 2 additions & 2 deletions
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
)
@@ -584,7 +584,7 @@ export async function activate(ctx: sourcegraph.ExtensionContext): Promise<void>
584584
providers.add(
585585
sourcegraph.languages.registerDefinitionProvider(documentSelector, {
586586
provideDefinition: distinctUntilChanged(areProviderParamsEqual, (textDocument, position) =>
587-
observableFromAsyncIterable(provideDefinition(textDocument, position))
587+
observableFromAsyncIterable(provideDefinition(textDocument, position)).pipe(rxop.shareReplay(1))
588588
),
589589
})
590590
)

0 commit comments

Comments
 (0)