Add chat participant, tools, and notifications view - #6280
Conversation
…tool to fix issues if so instructed
…tion, formatting the prompt
…when can not load more
add a prompt specifically for free form keywords in the syntax tool limit keywords on only one, and soft limit to lables to only one
Daniel Imms (Tyriar)
left a comment
There was a problem hiding this comment.
Part way through
| } | ||
|
|
||
| return folderRepoManager.activePullRequest; | ||
| return folderRepoManager.activePullRequest as unknown as T; |
There was a problem hiding this comment.
Is this a safe cast? Is a pull request model the same as an issue model?
There was a problem hiding this comment.
A PullRequestModel extends IssueModel. I don't know why typescript doesn't the direct cast to IssueModel.
| comments?: IIssueComment[]; | ||
| commentCount: number; |
There was a problem hiding this comment.
Is commentCount just comments.length? Seems redundant
There was a problem hiding this comment.
They are not the same. commentCount will always be set, as in we will always fetch the number of comments using the GitHub API; however, for performance we do not always fetch any of the comments.
| dispose() { | ||
| dispose(this.disposables); | ||
| } |
There was a problem hiding this comment.
nit: Is there a base class to extends instead of this?
There was a problem hiding this comment.
Nope, but we need one. Will tackle as debt across the codebase: #6285
| repo?: { | ||
| owner?: string; | ||
| name?: string; | ||
| }; | ||
| } | ||
|
|
||
| interface ConvertToQuerySyntaxResult { | ||
| query: string; | ||
| repo?: { | ||
| owner?: string; | ||
| name?: string; | ||
| }; |
There was a problem hiding this comment.
Is repo: {} valid?
There was a problem hiding this comment.
No, but it is valid for SearchToolParameters as the llm might not give us the proper arguments. Having owner and name optional here was the best way I could see to do this later:
vscode-pull-request-github/src/lm/searchTools.ts
Lines 397 to 398 in fe22731
which lets me describe that the output of one tool should be the input of the next.
Adds the following AI features:
githubprchat participant for handling github related requests