|
367 | 367 | "title": "Auto-detect mise bin path", |
368 | 368 | "default": true, |
369 | 369 | "markdownDescription": "Auto-detect mise bin path on startup." |
| 370 | + }, |
| 371 | + "mise.customBinaryExtensions": { |
| 372 | + "order": 19, |
| 373 | + "type": "array", |
| 374 | + "default": [], |
| 375 | + "markdownDescription": "Custom binary extensions to automatically configure VSCode extensions with mise tool binaries.\n\nEach entry requires:\n- `extensionId`: VSCode extension ID\n- `toolSources`: Array of mise tool registry sources to match\n- `vscodeSetting.key`: VSCode setting key to write\n\nOptional:\n- `binName`: Binary name (defaults to first tool name)\n- `vscodeSetting.subdirs`: Subdirectories to append to the path\n- `supportsShims`: Whether extension supports shims (default: true)\n- `supportsSymlinks`: Whether extension supports symlinks (default: true)", |
| 376 | + "items": { |
| 377 | + "type": "object", |
| 378 | + "required": ["extensionId", "toolSources", "vscodeSetting"], |
| 379 | + "properties": { |
| 380 | + "extensionId": { |
| 381 | + "type": "string", |
| 382 | + "description": "VSCode extension ID (e.g., 'ms-python.python')" |
| 383 | + }, |
| 384 | + "toolSources": { |
| 385 | + "type": "array", |
| 386 | + "items": { "type": "string" }, |
| 387 | + "description": "Mise tool registry sources to find the tool (e.g., ['python'], ['node', 'aqua:bufbuild/buf'])" |
| 388 | + }, |
| 389 | + "vscodeSetting": { |
| 390 | + "type": "object", |
| 391 | + "required": ["key"], |
| 392 | + "properties": { |
| 393 | + "key": { "type": "string", "description": "VSCode setting key (e.g., 'python.defaultInterpreterPath')" }, |
| 394 | + "subdirs": { |
| 395 | + "type": "array", |
| 396 | + "items": { "type": "string" }, |
| 397 | + "description": "Subdirectories to append to the tool path (e.g., ['bin'] to point to bin folder)" |
| 398 | + } |
| 399 | + } |
| 400 | + }, |
| 401 | + "binName": { |
| 402 | + "type": "string", |
| 403 | + "description": "Binary name to look up (defaults to first tool name)" |
| 404 | + }, |
| 405 | + "supportsShims": { |
| 406 | + "type": "boolean", |
| 407 | + "default": true, |
| 408 | + "description": "Whether this extension supports mise shims. If false, shims will not be used." |
| 409 | + }, |
| 410 | + "supportsSymlinks": { |
| 411 | + "type": "boolean", |
| 412 | + "default": true, |
| 413 | + "description": "Whether this extension supports symlinks. If false, symlinks will not be used." |
| 414 | + } |
| 415 | + } |
| 416 | + } |
| 417 | + }, |
| 418 | + "mise.customFolderExtensions": { |
| 419 | + "order": 20, |
| 420 | + "type": "array", |
| 421 | + "default": [], |
| 422 | + "markdownDescription": "Custom folder extensions to automatically configure VSCode extensions with mise tool folders.\n\nEach entry requires:\n- `extensionId`: VSCode extension ID\n- `toolSources`: Array of mise tool registry sources to match\n- `vscodeSetting.key`: VSCode setting key to write\n- `folderName`: Name for the symlink folder\n\nOptional:\n- `vscodeSetting.subdirs`: Subdirectories to append to the path written to VSCode setting\n- `sourceSubdirs`: Additional subdirs to find the tool source folder\n- `supportsSymlinks`: Whether extension supports symlinks (default: true)", |
| 423 | + "items": { |
| 424 | + "type": "object", |
| 425 | + "required": ["extensionId", "toolSources", "vscodeSetting", "folderName"], |
| 426 | + "properties": { |
| 427 | + "extensionId": { |
| 428 | + "type": "string", |
| 429 | + "description": "VSCode extension ID (e.g., 'ms-python.python')" |
| 430 | + }, |
| 431 | + "toolSources": { |
| 432 | + "type": "array", |
| 433 | + "items": { "type": "string" }, |
| 434 | + "description": "Mise tool registry sources to find the tool (e.g., ['python'], ['node', 'aqua:bufbuild/buf'])" |
| 435 | + }, |
| 436 | + "vscodeSetting": { |
| 437 | + "type": "object", |
| 438 | + "required": ["key"], |
| 439 | + "properties": { |
| 440 | + "key": { "type": "string", "description": "VSCode setting key (e.g., 'java.jdkHome')" }, |
| 441 | + "subdirs": { |
| 442 | + "type": "array", |
| 443 | + "items": { "type": "string" }, |
| 444 | + "description": "Subdirectories to append to the path (e.g., ['bin'] to point to bin subfolder)" |
| 445 | + } |
| 446 | + } |
| 447 | + }, |
| 448 | + "folderName": { |
| 449 | + "type": "string", |
| 450 | + "description": "Custom folder name for symlink" |
| 451 | + }, |
| 452 | + "sourceSubdirs": { |
| 453 | + "type": "array", |
| 454 | + "items": { "type": "string" }, |
| 455 | + "description": "Additional subdirs to find the tool source folder (e.g., ['lib'] to use parent/lib as base)" |
| 456 | + }, |
| 457 | + "supportsSymlinks": { |
| 458 | + "type": "boolean", |
| 459 | + "default": true, |
| 460 | + "description": "Whether extension supports symlinks. If false, direct path will be used." |
| 461 | + } |
| 462 | + } |
| 463 | + } |
370 | 464 | } |
371 | 465 | } |
372 | 466 | }, |
|
0 commit comments