LSP: Rename with LSP: Typescript
What I’m doing:
- LSP: Rename touching several paths (10+)
- Save changes
- Change to external terminal, git checkout (revert) all changes
- Focus back to Sublime, trigger LSP: Rename action again to re-do it
- LSP: Rename only detects 2 paths (current folder)
- Restart sublime
- LSP: Rename now detects all 10+ paths again
It seems Sublime (or the language server) does not pick up the external file changes until I restart Sublime.
I’m on Linux. Monorepo setup imported as a single project in Sublime:
// rootFolder saved as a project
rootFolder/package1
rootFolder/package2
rootFolder/package3
If I delete a folder from the terminal Sublime will instantly pick up the changes even if it’s not in focus, so certain external actions are picked up by Sublime.
Edit,
The same thing happens if I do LSP: Rename, perform the rename action, then select the thing I just renamed and do LSP: Rename again. It will only pick up the current package folder, not all files in the project.