forked from StyraInc/regal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lsp: Rename correctly when conflicting (StyraInc#1334)
* lsp: Rename correctly when conflicting This updates the server's rename quick action to use the same name generation conflict resolution logic as the fixer. This is done by allowing the server's cache to be used as a new file provider and consolidating the logic for generating changes required for the templating worker and command worker. This also changes the inlay hints to exit early if the file is not parsed. This reduces errors in the server logs when working with empty files. Signed-off-by: Charlie Egan <[email protected]> * chore: Use strings for fixing file content Signed-off-by: Charlie Egan <[email protected]> * lsp: pass version lookup to ToInput Signed-off-by: Charlie Egan <[email protected]> * fixer: Add test to show fixes after rename Signed-off-by: Charlie Egan <[email protected]> * rules: VersionsMap for all instances of input This adapts the LSP and fixer to use the versionsMap functionality in the same way as the linter. Signed-off-by: Charlie Egan <[email protected]> --------- Signed-off-by: Charlie Egan <[email protected]>
- Loading branch information
1 parent
954df8c
commit faa9c52
Showing
28 changed files
with
1,072 additions
and
511 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.