✨ feat(vscode): 代码阅读预览里工作区外的库文件也能问 AI,问答记进第一个工作区文件夹,重写注释不对库文件开放
This commit is contained in:
1 parent
cecae0e244
commit
39dfd9b084
24 files changed
+463
-79
No files matched your search
@@ -82,9 +82,9 @@ export interface BlockTreeHandle {
|
||||
edit?: { onToggleEdit: (id: string) => void, onFocused: () => void }
|
||||
/** 打开一块的调用树弹框。和 state.callTree 同时有 */
|
||||
onOpenCall?: (anchor: string) => void
|
||||
/** 问 AI;文件不在工作区文件夹里(问答没地方存)时 state 里 available 是 false */
|
||||
/** 问 AI;问答没地方存(没打开工作区文件夹)时 `state` 里 [ChatState.available] 是 `false` */
|
||||
qa?: QaTree
|
||||
/** 按注释规范重写;同问 AI */
|
||||
/** 按注释规范重写;工作区外的库文件不能重写,`state` 里 [ChatState.available] 是 `false` */
|
||||
rewrite?: RewriteTree
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ function shapeOf(block: BlockView, state: BlockTreeState): BlockShape {
|
||||
}
|
||||
}
|
||||
|
||||
/** 一块的问 AI:能问(文件在工作区文件夹里)时按钮展开没有;对话区展开着或说过时才有,没展开又没说过的块不画。 */
|
||||
/** 一块的问 AI:能问(问答有地方存)时按钮展开没有;对话区展开着或说过时才有,没展开又没说过的块不画。 */
|
||||
interface AskShape {
|
||||
asking?: boolean
|
||||
chat?: ChatView
|
||||
|
||||
Reference in new issue
Block a user