You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So i think i stumbled upon an issue. The scenario is the following
Open a file (readme.md for example) from the master worktree
Have lsp clients auto attach and initialize (i.e the lsp root dir points at the master worktree dir)
Create another worktree and/orChange worktree (pre existing) to another one also having the same readme file
Git-worktree will understand the file already exists and execute the update on change, i assume (which is just e .).
The pwd will change but the lsp client remains attached and still points at the master worktree as root directory
So what options do we have here, this is reproducible for any type of file not just markdown, i gave it as an obvious example since it is easy to test with (pretty much all work trees will no doubt have that file existing). Another important points is that if you have a lot of files and by proxy buffers open from the old worktree and you switch, only the current might get refreshed to the one in the changed worktree, but the rest will still point to the old one, maybe that is somewhat of a useful usecase for others, but i see worktrees as somewhat independent and isolated and in that case the most straight forward solution is to just delete all buffers (related to the old worktree using prev_path).
As a workaround, could I just kill all buffers with the callback command that already exists as a settable property ?
The text was updated successfully, but these errors were encountered:
So i think i stumbled upon an issue. The scenario is the following
e .
).So what options do we have here, this is reproducible for any type of file not just markdown, i gave it as an obvious example since it is easy to test with (pretty much all work trees will no doubt have that file existing). Another important points is that if you have a lot of files and by proxy buffers open from the old worktree and you switch, only the current might get refreshed to the one in the changed worktree, but the rest will still point to the old one, maybe that is somewhat of a useful usecase for others, but i see worktrees as somewhat independent and isolated and in that case the most straight forward solution is to just delete all buffers (related to the old worktree using prev_path).
As a workaround, could I just kill all buffers with the callback command that already exists as a settable property ?
The text was updated successfully, but these errors were encountered: