Skip to content

Task: Implement Code Formatting for MeTTa in LSP Server #263

@TeamSPoon

Description

@TeamSPoon

Overview

@jamesnvc has been adding a code formatting feature to our LSP server for the MeTTa language. This task is to continue the ongoing work on implementing a MeTTa-specific formatter that ensures consistent indentation, spacing, and readability while preserving the original semantics of the code.

Task Details

  • Continue working on the LSP textDocument/formatting handler.
  • Ensure the formatter respects MeTTa syntax and structure.
  • Maintain correct handling of comments (;) and expressions.
  • Maybe configuration options for formatting preferences if applicable.

Deliverables

  • LSP method implementation (textDocument/formatting).
  • Properly formatted MeTTa code preserving logic and structure.

This issue is for tracking progress and documenting the feature. 🚀 Keep going!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions