-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Priority: LowenhancementNew feature or requestNew feature or requestlspLanguage Server Protocol relatedLanguage Server Protocol relatedv1.4.0Release 1.4.0Release 1.4.0v1.5.0Release 1.5.0Release 1.5.0
Milestone
Description
Summary
Implement textDocument/onTypeFormatting to auto-format the current line when the user types ; or END_*.
Scope
- Trigger characters:
;,_(catches END_IF, END_FOR, etc.) - Formats indentation of the current line only
- Respects user formatting options (tab size, insert spaces)
- Registered in LSP server capabilities
Implementation Notes
- Add
onTypeFormattingProviderto LSP capabilities inserver.ts - Reuse indentation logic from
FormattingProvider
Acceptance
- Typing
;corrects indentation of current statement - Typing END_IF / END_FOR / END_WHILE normalizes indent
- No formatting when triggered in comments or strings
- Tests pass
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Priority: LowenhancementNew feature or requestNew feature or requestlspLanguage Server Protocol relatedLanguage Server Protocol relatedv1.4.0Release 1.4.0Release 1.4.0v1.5.0Release 1.5.0Release 1.5.0