refactor: rename config namespace from aiCommit to zemit
This commit is contained in:
@@ -37,12 +37,12 @@ Les paramètres se trouvent dans les préférences VS Code sous **Zemit**.
|
|||||||
|
|
||||||
| Paramètre | Description | Défaut |
|
| Paramètre | Description | Défaut |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `aiCommit.provider` | Fournisseur d'IA : `anthropic`, `openai` ou `ollama` | `anthropic` |
|
| `zemit.provider` | Fournisseur d'IA : `anthropic`, `openai` ou `ollama` | `anthropic` |
|
||||||
| `aiCommit.apiKey` | Clé API du fournisseur (inutile pour Ollama) | _(vide)_ |
|
| `zemit.apiKey` | Clé API du fournisseur (inutile pour Ollama) | _(vide)_ |
|
||||||
| `aiCommit.model` | Modèle à utiliser | `claude-sonnet-4-6` |
|
| `zemit.model` | Modèle à utiliser | `claude-sonnet-4-6` |
|
||||||
| `aiCommit.baseUrl` | URL de base personnalisée (ex. Ollama local) | _(vide)_ |
|
| `zemit.baseUrl` | URL de base personnalisée (ex. Ollama local) | _(vide)_ |
|
||||||
| `aiCommit.commitStyle` | Style du message : `conventional` ou `simple` | `conventional` |
|
| `zemit.commitStyle` | Style du message : `conventional` ou `simple` | `conventional` |
|
||||||
| `aiCommit.maxDiffSize` | Taille maximale du diff envoyé à l'IA (en caractères) | `5000` |
|
| `zemit.maxDiffSize` | Taille maximale du diff envoyé à l'IA (en caractères) | `5000` |
|
||||||
|
|
||||||
Pour choisir un modèle parmi ceux disponibles chez ton fournisseur, lance la commande **Zemit: Select Model** depuis la palette de commandes.
|
Pour choisir un modèle parmi ceux disponibles chez ton fournisseur, lance la commande **Zemit: Select Model** depuis la palette de commandes.
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ async function performGeneration(
|
|||||||
diff: string,
|
diff: string,
|
||||||
token: vscode.CancellationToken,
|
token: vscode.CancellationToken,
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const config = vscode.workspace.getConfiguration("aiCommit")
|
const config = vscode.workspace.getConfiguration("zemit")
|
||||||
const maxDiffSize = config.get<number>("maxDiffSize", 5000)
|
const maxDiffSize = config.get<number>("maxDiffSize", 5000)
|
||||||
const style = config.get<string>("commitStyle", "conventional")
|
const style = config.get<string>("commitStyle", "conventional")
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@ export function activate(context: vscode.ExtensionContext): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function selectModel(): Promise<void> {
|
async function selectModel(): Promise<void> {
|
||||||
const config = vscode.workspace.getConfiguration("aiCommit")
|
const config = vscode.workspace.getConfiguration("zemit")
|
||||||
|
|
||||||
let models: string[]
|
let models: string[]
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user