Code change:
import { Position } from '../../../../../editor/common/core/position.js'; import { Range } from '../../../../../editor/common/core/range.js'; import { IWordAtPosition, getWordAtText } from '../../../../../editor/common/core/wordHelper.js'; <del> import { CompletionContext, CompletionItem, CompletionItemKind } from '../../../../../editor/common/languages.js'; </del> <ins> import { CompletionContext, CompletionItem, CompletionItemKind, CompletionList } from '../../../../../editor/common/languages.js'; </ins> import { ITextModel } from '../../../../../editor/common/model.js'; import { ILanguageFeaturesService } from '../../../../../editor/common/services/languageFeatures.js'; import { localize } from '../../../../../nls.js'; import { Action2, registerAction2 } from '../../../../../platform/actions/common/actions.js'; import { IConfigurationService } from '../../../../../platform/configuration/common/configuration.js'; <del> import { ServicesAccessor } from '../../../../../platform/instantiation/common/instantiation.js'; </del> <ins> import { IInstantiationService, ServicesAccessor } from '../../../../../platform/instantiation/common/instantiation.js'; </ins> import { Registry } from '../../../../../platform/registry/common/platform.js'; import { IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions } from '../../../../common/contributions.js'; import { SubmitAction } from '../actions/chatExecuteActions.js'; import { IChatWidget, IChatWidgetService } from '../chat.js'; import { ChatInputPart } from '../chatInputPart.js'; <del> import { SelectAndInsertFileAction } from './chatDynamicVariables.js'; </del> <ins> import { ChatDynamicVariableModel, SelectAndInsertFileAction } from './chatDynamicVariables.js'; </ins> import { ChatAgentLocation, getFullyQualifiedId, IChatAgentData, IChatAgentNameService, IChatAgentService } from '../../common/chatAgents.js'; import { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, ChatRequestTextPart, ChatRequestToolPart, ChatRequestVariablePart, chatAgentLeader, chatSubcommandLeader, chatVariableLeader } from '../../common/chatParserTypes.js'; import { IChatSlashCommandService } from '../../common/chatSlashCommands.js'; <del> import { IChatVariablesService } from '../../common/chatVariables.js'; </del> <ins> import { IChatVariablesService, IDynamicVariable } from '../../common/chatVariables.js'; </ins> import { ILanguageModelToolsService } from '../../common/languageModelToolsService.js'; import { LifecyclePhase } from '../../../../services/lifecycle/common/lifecycle.js'; <ins> import { IHistoryService } from '../../../../services/history/common/history.js'; import { ILabelService } from '../../../../../platform/label/common/label.js'; import { ResourceSet } from '../../../../../base/common/map.js'; import { CommandsRegistry } from '../../../../../platform/commands/common/commands.js'; import { isPatternInWord } from '../../../../../base/common/filters.js'; import { ISearchService } from '../../../../services/search/common/search.js'; import { QueryBuilder } from '../../../../services/search/common/queryBuilder.js'; import { IWorkspaceContextService } from '../../../../../platform/workspace/common/workspace.js'; import { URI } from '../../../../../base/common/uri.js'; </ins> class SlashCommandCompletions extends Disposable { constructor(

Related discussion:
text: Today which have which triggers quick pick to select a file. This issue is about also allowing to type a file name and have dynamic suggestions, like inserts