sourcegraph / openctx

See contextual info about code from your dev tools, in your editor, code review, and anywhere else you read code.
https://openctx.org
Apache License 2.0
135 stars 14 forks source link

client: introduce preloadDelay #151

Closed keegancsmith closed 2 months ago

keegancsmith commented 3 months ago

This setting allows us to preload the openctx providers after a delay (which could be zero milliseconds). The intention is for Cody to set a reasonable value here (5s?) so that when a user does the first @ mention the providers have already been fetched.

Test Plan: added logging and observed the preload completing before activating the cody chat panel. Then loaded the cody chat panel and instantly do a mention. All OpenCtx providers where immediate.

Part of https://linear.app/sourcegraph/issue/CODY-1898/preload-openctx-providers-for-faster-user-typing

keegancsmith commented 3 months ago

I'm out until Tuesday, if someone wants to take this over the finish line the two things left to do are: