-
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.5.0Release 1.5.0Release 1.5.0
Milestone
Description
Summary
Implement textDocument/linkedEditingRange so that renaming a PROGRAM, FUNCTION_BLOCK, or FUNCTION declaration name simultaneously updates the paired closing keyword.
Scope
- Paired keywords:
FUNCTION_BLOCK/END_FUNCTION_BLOCK,FUNCTION/END_FUNCTION,PROGRAM/END_PROGRAM - Editing the name after the opening keyword updates the trailing comment or paired identifier if present
Implementation Notes
- New
LinkedEditingProviderinsrc/server/providers/ - Register
linkedEditingRangeProvidercapability inserver.ts
Acceptance
- Editing the name in an opening keyword reflects in the closing label (if used)
- Does not fire in comments or strings
- Tests cover PROGRAM, FUNCTION_BLOCK, and FUNCTION
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Priority: LowenhancementNew feature or requestNew feature or requestlspLanguage Server Protocol relatedLanguage Server Protocol relatedv1.5.0Release 1.5.0Release 1.5.0