{
  // ─── Éditeur ───────────────────────────────────────────────
  "editor.fontSize": 13,
  "workbench.colorTheme": "Vercel (Dark)",
  "editor.formatOnSave": true,
  // Remplace formulahendry.auto-rename-tag (natif depuis 1.60)
  "editor.linkedEditing": true,
  "editor.codeLens": true,
  "diffEditor.codeLens": true,
  "editor.codeActionsOnSave": {
    "source.organizeImports": "explicit",
    // À supprimer si tu es passé à oxlint sur tous tes projets
    "source.fixAll.eslint": "explicit",
    "source.addMissingImports": "explicit",
  },

  // ─── Formatters par langage ────────────────────────────────
  "[json]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
  "[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
  "[html]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
  "[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
  "[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
  "[astro]": { "editor.defaultFormatter": "astro-build.astro-vscode" },

  // ─── Workbench / Explorer ──────────────────────────────────
  "workbench.startupEditor": "none",
  "workbench.secondarySideBar.defaultVisibility": "hidden",
  "workbench.settings.applyToAllProfiles": [
    "editor.codeLens",
    "diffEditor.codeLens",
  ],
  "window.newWindowProfile": "NextJS",
  "explorer.confirmDragAndDrop": false,
  "explorer.confirmPasteNative": false,
  "explorer.confirmDelete": false,
  // CORRIGÉ : "**/node_modules/*" laissait le dossier vide visible
  "files.exclude": {
    "**/.next": true,
    "**/node_modules": true,
  },
  "explorer.fileNesting.patterns": {
    "*.ts": "${capture}.js",
    "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
    "*.jsx": "${capture}.js",
    "*.tsx": "${capture}.ts",
    "tsconfig.json": "tsconfig.*.json",
    "package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb, bun.lock",
    "*.sqlite": "${capture}.${extname}-*",
    "*.db": "${capture}.${extname}-*",
    "*.sqlite3": "${capture}.${extname}-*",
    "*.db3": "${capture}.${extname}-*",
    "*.sdb": "${capture}.${extname}-*",
    "*.s3db": "${capture}.${extname}-*",
  },

  // ─── Sécurité ──────────────────────────────────────────────
  // CHANGÉ depuis "open" : "open" exécute tasks/debug configs sans confirmation
  "security.workspace.trust.untrustedFiles": "prompt",

  // ─── Télémétrie & réseau ───────────────────────────────────
  "telemetry.telemetryLevel": "off",
  "telemetry.feedback.enabled": false,
  "update.mode": "none",
  "update.showReleaseNotes": false,
  "extensions.autoCheckUpdates": false,
  // CORRIGÉ : "off" n'est pas une valeur valide (true | false | "onlyEnabledExtensions")
  "extensions.autoUpdate": "off",
  "extensions.ignoreRecommendations": true,
  "workbench.enableExperiments": false,
  "workbench.settings.enableNaturalLanguageSearch": false,
  "workbench.welcomePage.walkthroughs.openOnInstall": false,
  "npm.fetchOnlinePackageInfo": false,
  "typescript.surveys.enabled": false,
  // DÉDUPLIQUÉ : était déclaré true plus haut, false ici
  "git.autofetch": false,

  // SUPPRIMÉ (signalés inconnus / non contribués) :
  //   "chat.commandCenter.enabled": false
  //   "telemetry.editStats.enabled": false
  // Décommente uniquement si Cmd+Shift+M ne les signale plus.

  // Ne sert que si l'extension Copilot est installée
  "github.copilot.enable": { "*": false },

  // ─── Terminal & apps externes ──────────────────────────────
  "terminal.explorerKind": "external",
  "terminal.external.osxExec": "Ghostty.app",
  "openInExternalApp.openMapper": [
    {
      "extensionName": ".csv",
      "appPath": "/Applications/Modern CSV.app",
    },
    // Remplace cyberbiont.vscode-open-in-typora
    {
      "extensionName": ".md",
      "appPath": "/Applications/Typora.app",
    },
  ],

  // SUPPRIMÉ : importSorter.* (extension non maintenue, doublon avec
  // source.organizeImports et conflit avec formatOnSave/Prettier)

  // ─── Todo Tree ─────────────────────────────────────────────
  "todo-tree.highlights.defaultHighlight": {
    "icon": "alert",
    "type": "text-and-comment",
    "foreground": "black",
    "background": "white",
    "opacity": 50,
    "iconColour": "blue",
    "gutterIcon": true,
  },
  "todo-tree.highlights.customHighlight": {
    "TODO": {
      "icon": "checkbox",
      "foreground": "black",
      "background": "yellow",
      "iconColour": "yellow",
    },
    "NOTE": {
      "icon": "note",
      "foreground": "white",
      "background": "cornflowerblue",
      "iconColour": "cornflowerblue",
    },
    "USEFUL": {
      "icon": "verified",
      "foreground": "black",
      "background": "mediumaquamarine",
      "iconColour": "mediumaquamarine",
    },
    "COMMENT": {
      "icon": "comment",
      "foreground": "white",
      "background": "gray",
      "iconColour": "white",
    },
    "LEARN": {
      "icon": "bookmark",
      "foreground": "white",
      "background": "hotpink",
      "iconColour": "hotpink",
    },
    "FIXME": {
      "icon": "tools",
      "foreground": "crimson",
      "background": "burlywood",
      "iconColour": "burlywood",
    },
    "RECHECK": {
      "icon": "codescan",
      "foreground": "white",
      "background": "chocolate",
      "iconColour": "chocolate",
    },
    "INCOMPLETE": {
      "icon": "alert",
      "foreground": "white",
      "background": "mediumvioletred",
      "iconColour": "mediumvioletred",
    },
    "BUG": {
      "icon": "bug",
      "foreground": "white",
      "background": "crimson",
      "iconColour": "crimson",
    },
    "SEE NOTES": {
      "icon": "note",
      "foreground": "white",
      "background": "teal",
      "iconColour": "teal",
    },
    "POST": {
      "icon": "share",
      "foreground": "white",
      "background": "green",
      "iconColour": "green",
    },
    "[ ]": {
      "icon": "check",
      "foreground": "black",
      "background": "white",
      "iconColour": "yellow",
    },
    "[x]": {
      "icon": "check",
      "foreground": "white",
      "background": "green",
      "iconColour": "green",
    },
  },
  "todo-tree.general.tags": [
    "BUG",
    "SEE NOTES",
    "HACK",
    "FIXME",
    "RECHECK",
    "INCOMPLETE",
    "TODO",
    "NOTE",
    "POST",
    "USEFUL",
    "LEARN",
    "COMMENT",
    "[ ]",
    "[x]",
  ],
  "todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^\\s*(-|\\d+.))\\s*($TAGS).*(\\n\\s*//\\s{2,}.*)*",
}
