5
5
6
6
import { URI } from '../../../../../../base/common/uri.js' ;
7
7
import { IFileService , IFileStatWithMetadata , IResolveMetadataFileOptions } from '../../../../../../platform/files/common/files.js' ;
8
- import { ITerminalCompletionProvider , TerminalCompletionService , TerminalResourceRequestConfig } from '../../browser/terminalCompletionService.js' ;
8
+ import { TerminalCompletionService , TerminalResourceRequestConfig } from '../../browser/terminalCompletionService.js' ;
9
9
import { ensureNoDisposablesAreLeakedInTestSuite } from '../../../../../../base/test/common/utils.js' ;
10
10
import assert , { fail } from 'assert' ;
11
11
import { isWindows , type IProcessEnvironment } from '../../../../../../base/common/platform.js' ;
@@ -21,7 +21,6 @@ import { count } from '../../../../../../base/common/strings.js';
21
21
import { WindowsShellType } from '../../../../../../platform/terminal/common/terminal.js' ;
22
22
import { gitBashToWindowsPath , windowsToGitBashPath } from '../../browser/terminalGitBashHelpers.js' ;
23
23
import { ILogService , NullLogService } from '../../../../../../platform/log/common/log.js' ;
24
- import { TerminalSuggestSettingId } from '../../common/terminalSuggestConfiguration.js' ;
25
24
26
25
const pathSeparator = isWindows ? '\\' : '/' ;
27
26
@@ -775,8 +774,8 @@ suite('TerminalCompletionService', () => {
775
774
suite ( 'Provider Configuration' , ( ) => {
776
775
// Test class that extends TerminalCompletionService to access protected methods
777
776
class TestTerminalCompletionService extends TerminalCompletionService {
778
- override getEnabledProviders ( providers : ITerminalCompletionProvider [ ] ) : ITerminalCompletionProvider [ ] {
779
- return super . getEnabledProviders ( providers ) ;
777
+ public _getEnabledProviders ( providers : ITerminalCompletionProvider [ ] ) : ITerminalCompletionProvider [ ] {
778
+ return super . _getEnabledProviders ( providers ) ;
780
779
}
781
780
}
782
781
@@ -794,8 +793,7 @@ suite('TerminalCompletionService', () => {
794
793
label : `completion-from-${ id } ` ,
795
794
kind : TerminalCompletionItemKind . Method ,
796
795
replacementIndex : 0 ,
797
- replacementLength : 0 ,
798
- provider : id
796
+ replacementLength : 0
799
797
} ]
800
798
} ;
801
799
}
@@ -808,7 +806,7 @@ suite('TerminalCompletionService', () => {
808
806
// Set empty configuration (no provider keys)
809
807
configurationService . setUserConfiguration ( TerminalSuggestSettingId . Providers , { } ) ;
810
808
811
- const result = testTerminalCompletionService . getEnabledProviders ( providers ) ;
809
+ const result = testTerminalCompletionService . _getEnabledProviders ( providers ) ;
812
810
813
811
// Both providers should be enabled since they're not explicitly disabled
814
812
assert . strictEqual ( result . length , 2 , 'Should enable both providers by default' ) ;
@@ -826,7 +824,7 @@ suite('TerminalCompletionService', () => {
826
824
'provider1' : false
827
825
} ) ;
828
826
829
- const result = testTerminalCompletionService . getEnabledProviders ( providers ) ;
827
+ const result = testTerminalCompletionService . _getEnabledProviders ( providers ) ;
830
828
831
829
// Only provider2 should be enabled
832
830
assert . strictEqual ( result . length , 1 , 'Should enable only one provider' ) ;
@@ -844,7 +842,7 @@ suite('TerminalCompletionService', () => {
844
842
'provider1' : true
845
843
} ) ;
846
844
847
- const result = testTerminalCompletionService . getEnabledProviders ( providers ) ;
845
+ const result = testTerminalCompletionService . _getEnabledProviders ( providers ) ;
848
846
849
847
// Both providers should be enabled
850
848
assert . strictEqual ( result . length , 2 , 'Should enable both providers' ) ;
@@ -864,7 +862,7 @@ suite('TerminalCompletionService', () => {
864
862
'provider2' : false
865
863
} ) ;
866
864
867
- const result = testTerminalCompletionService . getEnabledProviders ( providers ) ;
865
+ const result = testTerminalCompletionService . _getEnabledProviders ( providers ) ;
868
866
869
867
// provider1 and provider3 should be enabled, provider2 should be disabled
870
868
assert . strictEqual ( result . length , 2 , 'Should enable two providers' ) ;
0 commit comments