fix: enable `#` completions for chat editing session (#230271)

pull/230274/head
Joyce Er 2024-10-01 16:46:00 -07:00 committed by GitHub
parent 7bbd14551f
commit f7cf037069
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -533,6 +533,7 @@ class VariableCompletions extends Disposable {
provideCompletionItems: async (model: ITextModel, position: Position, _context: CompletionContext, _token: CancellationToken) => {
const locations = new Set<ChatAgentLocation>();
locations.add(ChatAgentLocation.Panel);
locations.add(ChatAgentLocation.EditingSession);
for (const value of Object.values(ChatAgentLocation)) {
if (typeof value === 'string' && configService.getValue<boolean>(`chat.experimental.variables.${value}`)) {