diff --git a/package.json b/package.json index 20ac7b59a2..06b920cda8 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "version": "0.100.1", "publisher": "GitHub", "engines": { - "vscode": "^1.95.0" + "vscode": "^1.96.0" }, "categories": [ "Other", @@ -3164,7 +3164,7 @@ "modelDescription": "Get a GitHub issue/PR's details as a JSON object.", "icon": "$(info)", "canBeReferencedInPrompt": true, - "parametersSchema": { + "inputSchema": { "type": "object", "properties": { "repo": { @@ -3207,7 +3207,7 @@ "modelDescription": "Get a GitHub notification's details as a JSON object.", "icon": "$(info)", "canBeReferencedInPrompt": true, - "parametersSchema": { + "inputSchema": { "type": "object", "properties": { "thread_id": { @@ -3233,7 +3233,7 @@ "modelDescription": "Summarizes a GitHub issue or pull request. A summary is a great way to describe an issue or pull request.", "icon": "$(info)", "canBeReferencedInPrompt": true, - "parametersSchema": { + "inputSchema": { "type": "object", "properties": { "title": { @@ -3308,7 +3308,7 @@ "modelDescription": "Summarizes a GitHub notification. A summary is a great way to describe a notification.", "icon": "$(info)", "canBeReferencedInPrompt": true, - "parametersSchema": { + "inputSchema": { "type": "object", "properties": { "lastReadAt": { @@ -3420,7 +3420,7 @@ "modelDescription": "Summarize and suggest a fix for a GitHub issue.", "icon": "$(info)", "canBeReferencedInPrompt": true, - "parametersSchema": { + "inputSchema": { "type": "object", "properties": { "repo": { @@ -3467,7 +3467,7 @@ "modelDescription": "Converts natural language to a GitHub search query. Should ALWAYS be called before doing a search.", "icon": "$(search)", "canBeReferencedInPrompt": true, - "parametersSchema": { + "inputSchema": { "type": "object", "properties": { "repo": { @@ -3511,7 +3511,7 @@ "modelDescription": "Execute a GitHub search given a well formed GitHub search query. Call github-pull-request_formSearchQuery first to get good search syntax and pass the exact result in as the 'query'.", "icon": "$(search)", "canBeReferencedInPrompt": true, - "parametersSchema": { + "inputSchema": { "type": "object", "properties": { "repo": { @@ -3557,7 +3557,7 @@ "modelDescription": "Render issue items from an issue search in a markdown table. The markdown table will be displayed directly to the user by the tool. No further display should be done after this!", "icon": "$(paintcan)", "canBeReferencedInPrompt": false, - "parametersSchema": { + "inputSchema": { "type": "object", "properties": { "arrayOfIssues": { diff --git a/src/lm/tools/fetchIssueTool.ts b/src/lm/tools/fetchIssueTool.ts index 78c212c1b7..d81433d708 100644 --- a/src/lm/tools/fetchIssueTool.ts +++ b/src/lm/tools/fetchIssueTool.ts @@ -80,8 +80,9 @@ export class FetchIssueTool extends RepoToolBase { } const { owner, name } = await this.getRepoInfo({ owner: options.input.repo?.owner, name: options.input.repo?.name }); const url = (owner && name) ? `https://github.com/${owner}/${name}/issues/${options.input.issueNumber}` : undefined; + const message = url ? new vscode.MarkdownString(vscode.l10n.t('Fetching item [#{0}]({1}) from GitHub', options.input.issueNumber, url)) : vscode.l10n.t('Fetching item #{0} from GitHub', options.input.issueNumber); return { - invocationMessage: url ? vscode.l10n.t('Fetching item [#{0}]({1}) from GitHub', options.input.issueNumber, url) : vscode.l10n.t('Fetching item #{0} from GitHub', options.input.issueNumber), + invocationMessage: message, }; } } \ No newline at end of file diff --git a/src/lm/tools/searchTools.ts b/src/lm/tools/searchTools.ts index cd0c9f61df..4e71e48f4e 100644 --- a/src/lm/tools/searchTools.ts +++ b/src/lm/tools/searchTools.ts @@ -439,9 +439,12 @@ export class SearchTool extends RepoToolBase { async prepareInvocation(options: vscode.LanguageModelToolInvocationPrepareOptions): Promise { const parameterQuery = options.input.query; + const message = new vscode.MarkdownString(); + message.appendText(vscode.l10n.t('Searching for issues with "{0}".', parameterQuery)); + message.appendMarkdown(vscode.l10n.t('[Open on GitHub.com]({0})', escapeMarkdown(this.toGitHubUrl(parameterQuery)))); return { - invocationMessage: vscode.l10n.t('Searching for issues with "{0}". [Open on GitHub.com]({1})', escapeMarkdown(parameterQuery), escapeMarkdown(this.toGitHubUrl(parameterQuery))) + invocationMessage: message }; } diff --git a/src/lm/tools/summarizeNotificationsTool.ts b/src/lm/tools/summarizeNotificationsTool.ts index fbf8b4ea14..384d22a335 100644 --- a/src/lm/tools/summarizeNotificationsTool.ts +++ b/src/lm/tools/summarizeNotificationsTool.ts @@ -21,7 +21,7 @@ export class NotificationSummarizationTool implements vscode.LanguageModelTool