✨ feat(vscode): 问 AI 和重写注释各用各的 profile,设置里加重写注释默认模型
This commit is contained in:
1 parent
925f1ed39a
commit
b83c445dd0
25 files changed
+363
-111
No files matched your search
@@ -34,12 +34,17 @@ describe('问 AI 的状态', () => {
|
||||
expect(historyOf(state, IF).map(entry => entry.id)).toEqual(['old'])
|
||||
})
|
||||
|
||||
it('profile 下拉:扩展端发来什么就显示什么,问答刷新不丢', () => {
|
||||
it('profile 下拉:问答、重写注释各记各的,扩展端发来什么就显示什么,记录刷新不丢', () => {
|
||||
const profiles = { options: [{ id: '', label: '默认' }, { id: 'sonnet', label: 'sonnet' }], selected: 'sonnet' }
|
||||
expect(EMPTY_QA.profiles).toEqual({ options: [], selected: '' })
|
||||
const state = run({ type: 'profiles', profiles }, qa([thread(IF, 'e1')]))
|
||||
expect(state.profiles).toEqual(profiles)
|
||||
expect(state.threads).toHaveLength(1)
|
||||
|
||||
expect(EMPTY_CHAT.profiles).toEqual({ options: [], selected: '' })
|
||||
const rewrite = chatReducer(chatReducer(EMPTY_CHAT, { type: 'profiles', profiles }), { type: 'sync', available: true, threads: [thread(IF, 'r1')], current: [] })
|
||||
expect(rewrite.profiles).toEqual(profiles)
|
||||
expect(rewrite.threads).toHaveLength(1)
|
||||
})
|
||||
|
||||
it('顶部的问答记在路径上,不进任何一块的历史', () => {
|
||||
|
||||
Reference in new issue
Block a user