@@ -20,7 +20,7 @@ import { getExtensionName } from '../utils/extension';
2020export async function registerCopilotContextProviders (
2121 context : vscode . ExtensionContext
2222) {
23- const contextProviderIsEnabled = await getExpService ( ) . getTreatmentVariableAsync ( TreatmentVariables . VSCodeConfig , TreatmentVariables . ContextProvider , true ) ;
23+ const contextProviderIsEnabled = await getExpService ( ) . getTreatmentVariableAsync ( TreatmentVariables . VSCodeConfig , TreatmentVariables . ContextProviderEnabled , true ) ;
2424 if ( ! contextProviderIsEnabled ) {
2525 sendInfo ( "" , {
2626 "contextProviderEnabled" : "false" ,
@@ -52,7 +52,7 @@ export async function registerCopilotContextProviders(
5252 if ( activeEditor && activeEditor . document . languageId === 'java' ) {
5353 const cachedImports = contextCache . get ( activeEditor . document . uri ) ;
5454 if ( cachedImports ) {
55- logger . info ( '======== Using cached imports, cache size:' , cachedImports . length ) ;
55+ logger . info ( 'Using cached imports, cache size:' , cachedImports . length ) ;
5656 // Return cached result as context items
5757 return cachedImports . map ( ( cls : any ) => ( {
5858 uri : cls . uri ,
@@ -133,10 +133,10 @@ async function resolveJavaContext(_request: ResolveRequest, _token: vscode.Cance
133133 importClass = await CopilotHelper . resolveLocalImports ( document . uri ) ;
134134 if ( importClass ) {
135135 contextCache . set ( document . uri , importClass ) ;
136- logger . info ( '======== Cached new imports, cache size:' , importClass . length ) ;
136+ logger . info ( 'Cached new imports, cache size:' , importClass . length ) ;
137137 }
138138 } else {
139- logger . info ( '======== Using cached imports in resolveJavaContext, cache size:' , importClass . length ) ;
139+ logger . info ( 'Using cached imports in resolveJavaContext, cache size:' , importClass . length ) ;
140140 }
141141
142142 if ( importClass ) {
0 commit comments