Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 925 Bytes

File metadata and controls

42 lines (27 loc) · 925 Bytes

Formatter 资源 - 代码格式化

Formatter 资源提供代码格式化器状态查询功能。

📋 方法列表

  1. status - 获取格式化器状态

📖 详细文档

1. status

获取格式化器状态。

检索所有已配置的代码格式化器的状态信息。

返回值:

  • List[Dict[str, Any]] - 格式化器状态列表,每个格式化器包含:
    • name - 格式化器名称
    • status - 状态信息
    • languages - 支持的语言列表

示例:

formatters = client.formatter.status()
for fmt in formatters:
    print(f"{fmt['name']}: {fmt['status']}")
    print(f"支持语言: {', '.join(fmt.get('languages', []))}")

💡 使用建议

  1. 格式化器状态 - 使用 status() 查看所有格式化器的运行状态

🔗 相关资源