more test/snapshot updates

This commit is contained in:
Johannes 2024-03-20 16:26:22 +01:00
parent 15441f4251
commit 58f2e217fe
No known key found for this signature in database
GPG key ID: 6DEF802A22264FCA
8 changed files with 16 additions and 9 deletions

View file

@ -33,7 +33,8 @@
name: "subCommand",
description: ""
}
]
],
locations: [ "panel" ]
},
kind: "agent"
},

View file

@ -33,7 +33,8 @@
name: "subCommand",
description: ""
}
]
],
locations: [ "panel" ]
},
kind: "agent"
},

View file

@ -19,7 +19,8 @@
name: "subCommand",
description: ""
}
]
],
locations: [ "panel" ]
},
kind: "agent"
},

View file

@ -19,7 +19,8 @@
name: "subCommand",
description: ""
}
]
],
locations: [ "panel" ]
},
kind: "agent"
},

View file

@ -19,7 +19,8 @@
name: "subCommand",
description: ""
}
]
],
locations: [ "panel" ]
},
kind: "agent"
},

View file

@ -19,7 +19,8 @@
name: "subCommand",
description: ""
}
]
],
locations: [ "panel" ]
},
kind: "agent"
},

View file

@ -19,7 +19,8 @@
name: "subCommand",
description: ""
}
]
],
locations: [ "panel" ]
},
kind: "agent"
},

View file

@ -9,7 +9,7 @@ import { ensureNoDisposablesAreLeakedInTestSuite } from 'vs/base/test/common/uti
import { TestInstantiationService } from 'vs/platform/instantiation/test/common/instantiationServiceMock';
import { ILogService, NullLogService } from 'vs/platform/log/common/log';
import { IStorageService } from 'vs/platform/storage/common/storage';
import { ChatAgentService, IChatAgentCommand, IChatAgentData, IChatAgentService } from 'vs/workbench/contrib/chat/common/chatAgents';
import { ChatAgentLocation, ChatAgentService, IChatAgentCommand, IChatAgentData, IChatAgentService } from 'vs/workbench/contrib/chat/common/chatAgents';
import { ChatRequestParser } from 'vs/workbench/contrib/chat/common/chatRequestParser';
import { IChatService } from 'vs/workbench/contrib/chat/common/chatService';
import { IChatSlashCommandService } from 'vs/workbench/contrib/chat/common/chatSlashCommands';
@ -112,7 +112,7 @@ suite('ChatRequestParser', () => {
});
const getAgentWithSlashCommands = (slashCommands: IChatAgentCommand[]) => {
return <IChatAgentData>{ id: 'agent', metadata: { description: '' }, slashCommands };
return <IChatAgentData>{ id: 'agent', metadata: { description: '' }, slashCommands, locations: [ChatAgentLocation.Panel] };
};
test('agent with subcommand after text', async () => {