MarkusAmshove / natls

Language Server implementation for the Natural 4GL programming language
MIT License
12 stars 3 forks source link

Rename referencable node and references on file rename #442

Open Claes65 opened 9 months ago

Claes65 commented 9 months ago

Re-indexing (or partly re-indexing, if possible) the project when:

  1. A NS* file was renamed (renaming already works perfectly - including preview).
  2. An external subroutine name was changed or a function name was changed: DEFINE SUBROUTINE X -> DEFINE SUBROUTINE Y DEFINE FUNCTION X -> DEFINE FUNCTION Y edit: after re-testing, this seems to work as well :)

Ideally, there should be a preview to view changes before applying them for point 2 as well.

Is re-indexing called for when any natls preference has been changed?

MarkusAmshove commented 1 week ago

Is this still an issue? Your comments indicate that it is working.

Previews are done by the clients. If you for example see a preview in VSCode but not in NaturalONE, that Eclipse simply hasn't implemented a preview for multi-file edits