Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 105 additions & 96 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3718,113 +3718,99 @@
},
{
"id": "ai",
"title": "AI (ᴇxᴘᴇʀɪᴍᴇɴᴛᴀʟ)",
"title": "AI (ᴘʀᴇᴠɪᴇᴡ)",
"order": 1000,
"properties": {
"gitlens.ai.experimental.generateCommitMessage.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to enable GitLens' experimental, AI-powered, on-demand commit message generation",
"scope": "window",
"order": 1
},
"gitlens.experimental.generateCommitMessagePrompt": {
"type": "string",
"default": "Now, based on the provided code diff and any additional context, create a concise but meaningful commit message following the instructions above.",
"markdownDescription": "Specifies the prompt to use to tell the AI provider how to structure or format the generated commit message",
"scope": "window",
"order": 2
},
"gitlens.experimental.generateCloudPatchMessagePrompt": {
"type": "string",
"default": "Now, based on the provided code diff and any additional context, create a concise but meaningful title and description following the instructions above.",
"markdownDescription": "Specifies the prompt to use to tell the AI provider how to structure or format the generated title and description",
"scope": "window",
"order": 3
},
"gitlens.experimental.generateCodeSuggestMessagePrompt": {
"type": "string",
"default": "Now, based on the provided code diff and any additional context, create a concise but meaningful code review title and description following the instructions above.",
"markdownDescription": "Specifies the prompt to use to tell the AI provider how to structure or format the generated title and description",
"scope": "window",
"order": 3
},
"gitlens.ai.experimental.model": {
"gitlens.ai.model": {
"type": [
"string",
"null"
],
"default": null,
"enum": [
"openai:gpt-4o",
"openai:gpt-4o-mini",
"openai:gpt-4-turbo",
"openai:gpt-4-turbo-preview",
"openai:gpt-4",
"openai:gpt-4-32k",
"openai:gpt-3.5-turbo",
"openai:gpt-3.5-turbo-16k",
"anthropic:claude-3-opus-20240229",
"anthropic:claude-3-opus-latest",
"anthropic:claude-3-5-sonnet-20240620",
"anthropic:claude-3-5-sonnet-20241022",
"anthropic:claude-3-5-sonnet-latest",
"anthropic:claude-3-sonnet-20240229",
"anthropic:claude-3-haiku-20240307",
"anthropic:claude-2.1",
"anthropic:claude-2",
"anthropic:claude-instant-1",
"google:gemini-1.5-pro-latest",
"google:gemini-1.5-flash-latest",
"google:gemini-1.0-pro",
"vscode",
"xai:grok-beta"
],
"enumDescriptions": [
"OpenAI GPT-4 Omni",
"OpenAI GPT-4 Omni Mini",
"OpenAI GPT-4 Turbo with Vision",
"OpenAI GPT-4 Turbo Preview",
"OpenAI GPT-4",
"OpenAI GPT-4 32k",
"OpenAI GPT-3.5 Turbo",
"OpenAI GPT-3.5 Turbo 16k",
"Anthropic Claude 3 Opus",
"Anthropic Claude 3.5 Sonnet",
"Anthropic Claude 3 Sonnet",
"Anthropic Claude 3 Haiku",
"Anthropic Claude 2.1",
"Anthropic Claude 2",
"Anthropic Claude Instant 1.2",
"Google Gemini 1.5 Pro (Latest)",
"Google Gemini 1.5 Flash",
"Google Gemini 1.0 Pro",
"VS Code Extension"
],
"markdownDescription": "Specifies the AI model to use for GitLens' experimental AI features",
"pattern": "^((anthropic|github|google|huggingface|openai|xai):([\\w.-]+)|vscode)$",
"markdownDescription": "Specifies the AI model to use for GitLens' experimental AI features. Should be formatted as `provider:model` (e.g. `openai:gpt-4o` or `anthropic:claude-3-5-sonnet-latest`), or `vscode` for models provided by the VS Code extension API (e.g. Copilot)",
"scope": "window",
"order": 100
"order": 10,
"tags": [
"preview"
]
},
"gitlens.ai.experimental.openai.url": {
"gitlens.ai.vscode.model": {
"type": [
"string",
"null"
],
"default": null,
"markdownDescription": "Specifies a custom URL to use for access to an OpenAI model via Azure. Azure URLs should be in the following format: https://{your-resource-name}.openai.azure.com/openai/deployments/{deployment-id}/chat/completions?api-version={api-version}",
"pattern": "^(.*):(.*)$",
"markdownDescription": "Specifies the VS Code provided model to use for GitLens' experimental AI features, formatted as `vendor:family`",
"scope": "window",
"order": 102
"order": 20,
"tags": [
"preview"
]
},
"gitlens.ai.experimental.vscode.model": {
"gitlens.ai.openai.url": {
"type": [
"string",
"null"
],
"default": null,
"pattern": "^(.*):(.*)$",
"markdownDescription": "Specifies the VS Code provided model to use for GitLens' experimental AI features, formatted as `vendor:family`",
"markdownDescription": "Specifies a custom URL to use for access to an OpenAI model via Azure. Azure URLs should be in the following format: https://{your-resource-name}.openai.azure.com/openai/deployments/{deployment-id}/chat/completions?api-version={api-version}",
"scope": "window",
"order": 30,
"tags": [
"preview"
]
},
"gitlens.ai.explainChanges.customInstructions": {
"type": "string",
"default": null,
"markdownDescription": "Specifies custom instructions to provide to the AI provider when generating a summary of changes",
"scope": "window",
"order": 100,
"tags": [
"preview"
]
},
"gitlens.ai.generateCommitMessage.customInstructions": {
"type": "string",
"default": null,
"markdownDescription": "Specifies custom instructions to provide to the AI provider when generating a commit message",
"scope": "window",
"order": 200,
"tags": [
"preview"
]
},
"gitlens.ai.generateCommitMessage.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Specifies whether to enable GitLens' AI-powered, on-demand commit message generation",
"scope": "window",
"order": 105
"order": 210,
"tags": [
"preview"
]
},
"gitlens.ai.generateCloudPatchMessage.customInstructions": {
"type": "string",
"default": null,
"markdownDescription": "Specifies custom instructions to provide to the AI provider when generating a cloud patch title and description",
"scope": "window",
"order": 300,
"tags": [
"preview"
]
},
"gitlens.ai.generateCodeSuggestMessage.customInstructions": {
"type": "string",
"default": null,
"markdownDescription": "Specifies custom instructions to provide to the AI provider when generating a code suggest title and description",
"scope": "window",
"order": 400,
"tags": [
"preview"
]
}
}
},
Expand Down Expand Up @@ -5659,7 +5645,12 @@
"commands": [
{
"command": "gitlens.generateCommitMessage",
"title": "Generate Commit Message (GitLens)...",
"title": "Generate Commit Message...",
"category": "GitLens"
},
{
"command": "gitlens.scm.generateCommitMessage",
"title": "Generate Commit Message with GitLens...",
"category": "GitLens"
},
{
Expand Down Expand Up @@ -5777,6 +5768,11 @@
"title": "Copy Working Changes to Worktree...",
"category": "GitLens"
},
{
"command": "gitlens.graph.generateCommitMessage",
"title": "Generate Commit Message...",
"category": "GitLens"
},
{
"command": "gitlens.createPatch",
"title": "Create Patch...",
Expand Down Expand Up @@ -9229,8 +9225,8 @@
"icon": "$(eye)"
},
{
"command": "gitlens.graph.openSCM",
"title": "Open Source Control",
"command": "gitlens.graph.commitViaSCM",
"title": "Commit via Source Control...",
"category": "GitLens"
},
{
Expand Down Expand Up @@ -12463,7 +12459,7 @@
"when": "false"
},
{
"command": "gitlens.graph.openSCM",
"command": "gitlens.graph.commitViaSCM",
"when": "false"
},
{
Expand Down Expand Up @@ -12860,7 +12856,15 @@
},
{
"command": "gitlens.generateCommitMessage",
"when": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && gitlens:gk:organization:ai:enabled && config.gitlens.ai.experimental.generateCommitMessage.enabled"
"when": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && gitlens:gk:organization:ai:enabled && config.gitlens.ai.generateCommitMessage.enabled"
},
{
"command": "gitlens.scm.generateCommitMessage",
"when": "false"
},
{
"command": "gitlens.graph.generateCommitMessage",
"when": "false"
},
{
"command": "gitlens.resetAIKey",
Expand Down Expand Up @@ -13213,8 +13217,8 @@
"group": "4_gitlens@3"
},
{
"command": "gitlens.generateCommitMessage",
"when": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && gitlens:gk:organization:ai:enabled && config.gitlens.ai.experimental.generateCommitMessage.enabled && config.gitlens.menus.scmRepository.generateCommitMessage",
"command": "gitlens.scm.generateCommitMessage",
"when": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && gitlens:gk:organization:ai:enabled && config.gitlens.ai.generateCommitMessage.enabled && config.gitlens.menus.scmRepository.generateCommitMessage",
"group": "4_gitlens@4"
}
],
Expand Down Expand Up @@ -13264,8 +13268,8 @@
"group": "2_z_gitlens@3"
},
{
"command": "gitlens.generateCommitMessage",
"when": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && gitlens:gk:organization:ai:enabled && config.gitlens.ai.experimental.generateCommitMessage.enabled && scmProvider == git && config.gitlens.menus.scmRepository.generateCommitMessage",
"command": "gitlens.scm.generateCommitMessage",
"when": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && gitlens:gk:organization:ai:enabled && config.gitlens.ai.generateCommitMessage.enabled && scmProvider == git && config.gitlens.menus.scmRepository.generateCommitMessage",
"group": "2_z_gitlens@4"
},
{
Expand Down Expand Up @@ -16340,9 +16344,14 @@
"group": "3_gitlens_explore@0"
},
{
"command": "gitlens.graph.openSCM",
"command": "gitlens.graph.commitViaSCM",
"when": "!listMultiSelection && webviewItem == gitlens:wip",
"group": "3_gitlens_explore@1"
"group": "1_gitlens@1"
},
{
"command": "gitlens.graph.generateCommitMessage",
"when": "!listMultiSelection && webviewItem == gitlens:wip && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders && gitlens:gk:organization:ai:enabled && config.gitlens.ai.generateCommitMessage.enabled",
"group": "1_gitlens@2"
},
{
"command": "gitlens.graph.openCommitOnRemote",
Expand Down
Loading
Loading