@@ -17,7 +17,6 @@ import { ILanguageFeaturesService } from 'vs/editor/common/services/languageFeat
17
17
import { localize } from 'vs/nls' ;
18
18
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
19
19
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
20
- import { IProductService } from 'vs/platform/product/common/productService' ;
21
20
import { Registry } from 'vs/platform/registry/common/platform' ;
22
21
import { inputPlaceholderForeground } from 'vs/platform/theme/common/colorRegistry' ;
23
22
import { IThemeService } from 'vs/platform/theme/common/themeService' ;
@@ -512,20 +511,13 @@ class BuiltinDynamicCompletions extends Disposable {
512
511
constructor (
513
512
@ILanguageFeaturesService private readonly languageFeaturesService : ILanguageFeaturesService ,
514
513
@IChatWidgetService private readonly chatWidgetService : IChatWidgetService ,
515
- @IConfigurationService private readonly configurationService : IConfigurationService ,
516
- @IProductService private readonly productService : IProductService ,
517
514
) {
518
515
super ( ) ;
519
516
520
517
this . _register ( this . languageFeaturesService . completionProvider . register ( { scheme : ChatInputPart . INPUT_SCHEME , hasAccessToAllModels : true } , {
521
518
_debugDisplayName : 'chatDynamicCompletions' ,
522
519
triggerCharacters : [ chatVariableLeader ] ,
523
520
provideCompletionItems : async ( model : ITextModel , position : Position , _context : CompletionContext , _token : CancellationToken ) => {
524
- const fileVariablesEnabled = this . configurationService . getValue ( 'chat.experimental.fileVariables' ) ?? this . productService . quality !== 'stable' ;
525
- if ( ! fileVariablesEnabled ) {
526
- return ;
527
- }
528
-
529
521
const widget = this . chatWidgetService . getWidgetByInputUri ( model . uri ) ;
530
522
if ( ! widget || ! widget . supportsFileReferences ) {
531
523
return null ;
0 commit comments