Changesets · Branches · Tags · Compare
| Changeset | 9af2e3448de93c2ac2c2a9292dd6b6ebbd18e28c66db9ab30d1a4ed943c8b769 |
|---|---|
| Author | Ting-Wai To <tingwai.to@gmail.com> · 2025-06-30 11:13 -07:00 |
| Committer | Ting-Wai To <tingwai.to@gmail.com> · 2025-06-30 11:13 -07:00 |
| Parents | 68e8a01e26c2 |
4 files changed
modified core/config/load.ts +1 −8
| @@ -36,7 +36,6 @@ | ||
| 36 | 36 | import { convertCustomCommandToSlashCommand } from "../commands/slash/customSlashCommand"; |
| 37 | 37 | import { slashCommandFromPromptFile } from "../commands/slash/promptFileSlashCommand"; |
| 38 | 38 | import { MCPManagerSingleton } from "../context/mcp/MCPManagerSingleton"; |
| 39 | -import CodebaseContextProvider from "../context/providers/CodebaseContextProvider"; | |
| 40 | 39 | import ContinueProxyContextProvider from "../context/providers/ContinueProxyContextProvider"; |
| 41 | 40 | import CustomContextProviderClass from "../context/providers/CustomContextProvider"; |
| 42 | 41 | import FileContextProvider from "../context/providers/FileContextProvider"; |
| @@ -398,13 +397,7 @@ | ||
| 398 | 397 | | undefined |
| 399 | 398 | )?.params || {}; |
| 400 | 399 | |
| 401 | - const DEFAULT_CONTEXT_PROVIDERS = [ | |
| 402 | - new FileContextProvider({}), | |
| 403 | - // Add codebase provider if indexing is enabled | |
| 404 | - ...(!config.disableIndexing | |
| 405 | - ? [new CodebaseContextProvider(codebaseContextParams)] | |
| 406 | - : []), | |
| 407 | - ]; | |
| 400 | + const DEFAULT_CONTEXT_PROVIDERS = [new FileContextProvider({})]; | |
| 408 | 401 | |
| 409 | 402 | const DEFAULT_CONTEXT_PROVIDERS_TITLES = DEFAULT_CONTEXT_PROVIDERS.map( |
| 410 | 403 | ({ description: { title } }) => title, |
modified core/config/yaml/loadYaml.ts +1 −8
| @@ -26,7 +26,6 @@ | ||
| 26 | 26 | RuleWithSource, |
| 27 | 27 | } from "../.."; |
| 28 | 28 | import { MCPManagerSingleton } from "../../context/mcp/MCPManagerSingleton"; |
| 29 | -import CodebaseContextProvider from "../../context/providers/CodebaseContextProvider"; | |
| 30 | 29 | import DocsContextProvider from "../../context/providers/DocsContextProvider"; |
| 31 | 30 | import FileContextProvider from "../../context/providers/FileContextProvider"; |
| 32 | 31 | import { contextProviderClassFromName } from "../../context/providers/index"; |
| @@ -385,13 +384,7 @@ | ||
| 385 | 384 | } |
| 386 | 385 | |
| 387 | 386 | // Context providers |
| 388 | - const codebaseContextParams: IContextProvider[] = | |
| 389 | - (config.context || []).find((cp) => cp.provider === "codebase")?.params || | |
| 390 | - {}; | |
| 391 | - const DEFAULT_CONTEXT_PROVIDERS = [ | |
| 392 | - new FileContextProvider({}), | |
| 393 | - new CodebaseContextProvider(codebaseContextParams), | |
| 394 | - ]; | |
| 387 | + const DEFAULT_CONTEXT_PROVIDERS = [new FileContextProvider({})]; | |
| 395 | 388 | |
| 396 | 389 | const DEFAULT_CONTEXT_PROVIDERS_TITLES = DEFAULT_CONTEXT_PROVIDERS.map( |
| 397 | 390 | ({ description: { title } }) => title, |
modified core/context/providers/index.ts +2 −0
| @@ -2,6 +2,7 @@ | ||
| 2 | 2 | import { ContextProviderName } from "../../"; |
| 3 | 3 | |
| 4 | 4 | import ClipboardContextProvider from "./ClipboardContextProvider"; |
| 5 | +import CodebaseContextProvider from "./CodebaseContextProvider"; | |
| 5 | 6 | import CodeContextProvider from "./CodeContextProvider"; |
| 6 | 7 | import ContinueProxyContextProvider from "./ContinueProxyContextProvider"; |
| 7 | 8 | import CurrentFileContextProvider from "./CurrentFileContextProvider"; |
| @@ -56,6 +57,7 @@ | ||
| 56 | 57 | JiraIssuesContextProvider, |
| 57 | 58 | PostgresContextProvider, |
| 58 | 59 | DatabaseContextProvider, |
| 60 | + CodebaseContextProvider, | |
| 59 | 61 | CodeContextProvider, |
| 60 | 62 | CurrentFileContextProvider, |
| 61 | 63 | URLContextProvider, |
modified core/core.ts +0 −3
| @@ -10,7 +10,6 @@ | ||
| 10 | 10 | import { ConfigHandler } from "./config/ConfigHandler"; |
| 11 | 11 | import { SYSTEM_PROMPT_DOT_FILE } from "./config/getWorkspaceContinueRuleDotFiles"; |
| 12 | 12 | import { addModel, deleteModel } from "./config/util"; |
| 13 | -import CodebaseContextProvider from "./context/providers/CodebaseContextProvider"; | |
| 14 | 13 | import CurrentFileContextProvider from "./context/providers/CurrentFileContextProvider"; |
| 15 | 14 | import { ContinueServerClient } from "./continueServer/stubs/client"; |
| 16 | 15 | import { getAuthUrlForTokenPage } from "./control-plane/auth/index"; |
| @@ -1045,8 +1044,6 @@ | ||
| 1045 | 1044 | // user doesn't need these in their config.json for the shortcuts to work |
| 1046 | 1045 | // option+enter |
| 1047 | 1046 | new CurrentFileContextProvider({}), |
| 1048 | - // cmd+enter | |
| 1049 | - new CodebaseContextProvider({}), | |
| 1050 | 1047 | ].find((provider) => provider.description.title === name); |
| 1051 | 1048 | if (!provider) { |
| 1052 | 1049 | return []; |