diff --git a/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.ts b/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.ts index f5ab9faa473d0..134071a9fef2d 100644 --- a/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.ts +++ b/src/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions.ts @@ -606,18 +606,8 @@ class VariableCompletions extends Disposable { _debugDisplayName: 'chatVariables', triggerCharacters: [chatVariableLeader], provideCompletionItems: async (model: ITextModel, position: Position, _context: CompletionContext, _token: CancellationToken) => { - const locations = new Set(); - locations.add(ChatAgentLocation.Panel); - locations.add(ChatAgentLocation.EditingSession); - - for (const value of Object.values(ChatAgentLocation)) { - if (typeof value === 'string' && configService.getValue(`chat.experimental.variables.${value}`)) { - locations.add(value); - } - } - const widget = this.chatWidgetService.getWidgetByInputUri(model.uri); - if (!widget || !locations.has(widget.location)) { + if (!widget) { return null; }