@@ -18,7 +18,7 @@ import { ILogService, NullLogService } from '../../../../../platform/log/common/
1818import { IProductService } from '../../../../../platform/product/common/productService.js' ;
1919import { IStorageService , InMemoryStorageService , StorageScope , StorageTarget } from '../../../../../platform/storage/common/storage.js' ;
2020import { ChatTipService , CREATE_AGENT_INSTRUCTIONS_TRACKING_COMMAND , CREATE_AGENT_TRACKING_COMMAND , CREATE_PROMPT_TRACKING_COMMAND , CREATE_SKILL_TRACKING_COMMAND , FORK_CONVERSATION_TRACKING_COMMAND , IChatTip , ITipDefinition , TipEligibilityTracker } from '../../browser/chatTipService.js' ;
21- import { AgentFileType , IPromptPath , IPromptsService , IAgentInstructionFile , PromptsStorage } from '../../common/promptSyntax/service/promptsService.js' ;
21+ import { AgentInstructionFileType , IPromptPath , IPromptsService , IAgentInstructionFile , PromptsStorage } from '../../common/promptSyntax/service/promptsService.js' ;
2222import { URI } from '../../../../../base/common/uri.js' ;
2323import { ChatContextKeys } from '../../common/actions/chatContextKeys.js' ;
2424import { ChatAgentLocation , ChatModeKind } from '../../common/constants.js' ;
@@ -904,14 +904,14 @@ suite('ChatTipService', () => {
904904 test ( 'excludes tip.customInstructions when copilot-instructions.md exists in workspace' , async ( ) => {
905905 const tip = createMockTip ( {
906906 id : 'tip.customInstructions' ,
907- excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
907+ excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentInstructionFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
908908 } ) ;
909909
910910 const tracker = testDisposables . add ( new TipEligibilityTracker (
911911 [ tip ] ,
912912 { onDidExecuteCommand : Event . None , onWillExecuteCommand : Event . None } as Partial < ICommandService > as ICommandService ,
913913 storageService ,
914- createMockPromptsService ( [ { uri : { path : '/.github/copilot-instructions.md' } , realPath : undefined , type : AgentFileType . copilotInstructionsMd } as IAgentInstructionFile ] ) as IPromptsService ,
914+ createMockPromptsService ( [ { uri : { path : '/.github/copilot-instructions.md' } , realPath : undefined , type : AgentInstructionFileType . copilotInstructionsMd } as IAgentInstructionFile ] ) as IPromptsService ,
915915 createMockToolsService ( ) ,
916916 new NullLogService ( ) ,
917917 ) ) ;
@@ -925,14 +925,14 @@ suite('ChatTipService', () => {
925925 test ( 'does not exclude tip.customInstructions when only AGENTS.md exists' , async ( ) => {
926926 const tip = createMockTip ( {
927927 id : 'tip.customInstructions' ,
928- excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
928+ excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentInstructionFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
929929 } ) ;
930930
931931 const tracker = testDisposables . add ( new TipEligibilityTracker (
932932 [ tip ] ,
933933 { onDidExecuteCommand : Event . None , onWillExecuteCommand : Event . None } as Partial < ICommandService > as ICommandService ,
934934 storageService ,
935- createMockPromptsService ( [ { uri : { path : '/AGENTS.md' } , realPath : undefined , type : AgentFileType . agentsMd } as IAgentInstructionFile ] ) as IPromptsService ,
935+ createMockPromptsService ( [ { uri : { path : '/AGENTS.md' } , realPath : undefined , type : AgentInstructionFileType . agentsMd } as IAgentInstructionFile ] ) as IPromptsService ,
936936 createMockToolsService ( ) ,
937937 new NullLogService ( ) ,
938938 ) ) ;
@@ -946,7 +946,7 @@ suite('ChatTipService', () => {
946946 test ( 'excludes tip.customInstructions when .instructions.md files exist in workspace' , async ( ) => {
947947 const tip = createMockTip ( {
948948 id : 'tip.customInstructions' ,
949- excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
949+ excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentInstructionFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
950950 } ) ;
951951
952952 const tracker = testDisposables . add ( new TipEligibilityTracker (
@@ -967,7 +967,7 @@ suite('ChatTipService', () => {
967967 test ( 'does not exclude tip.customInstructions when no instruction files exist' , async ( ) => {
968968 const tip = createMockTip ( {
969969 id : 'tip.customInstructions' ,
970- excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
970+ excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentInstructionFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
971971 } ) ;
972972
973973 const tracker = testDisposables . add ( new TipEligibilityTracker (
@@ -1701,7 +1701,7 @@ suite('ChatTipService', () => {
17011701
17021702 const tip = createMockTip ( {
17031703 id : 'tip.customInstructions' ,
1704- excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
1704+ excludeWhenPromptFilesExist : { promptType : PromptsType . instructions , agentFileType : AgentInstructionFileType . copilotInstructionsMd , excludeUntilChecked : true } ,
17051705 } ) ;
17061706
17071707 const tracker = testDisposables . add ( new TipEligibilityTracker (
0 commit comments