(build: IndexBuildInfo)
| 40 | |
| 41 | /** Actionable warning prepended to the first successful response for a stale project. */ |
| 42 | export function formatIndexVersionWarning(build: IndexBuildInfo): string { |
| 43 | return ( |
| 44 | `${INDEX_VERSION_WARNING_PREFIX} ` + |
| 45 | `It was built with ${formatIndexBuildVersion(build)}; the running engine is ` + |
| 46 | `CodeGraph ${formatRunningVersion()}. Answers can miss symbols and relationships this ` + |
| 47 | "engine adds. Indexing is the user's decision: they can run `codegraph index` in the " + |
| 48 | 'project to rebuild it.' |
| 49 | ); |
| 50 | } |
no test coverage detected