Bug Report git worktree

From: Konstantin Hebenstreit <hidden>
Date: 2023-02-08 16:41:05

Dear git developer community!

I'll just do a very simple small bug report.

I tried to use the git worktree command in vscode today.
vscode version: updated
git version 2.34.1

I created a worktree inside vscode, inside the extension gitlens by 
right clicking on another brach and selecting worktree.
This was not working immideately, so I first created a new folder 
(../new_folder) where I then linked the worktree to.
This was working fine. git worktree list showed both locations with 
their respective two branches.

Then I switched to the new_folder, using 'pushd'.

Bug 1)
In the Explorer field of vscode I did still see the files as they were 
before changing directory. Even if I reloaded it.
But in the shell of vscode I saw the files as they should be (as they 
are on the branch which is tied to the new_folder).

Bug 2) more problematic
worktree overwrote my settings.json file.
file:  .vscode/settings.json (not tracked by git)
Could be because the Extension 'cSpell' overwrote it. I was adding two 
new words to its dictionary, which is saved inside the settings json.
What I am left now is a settings.json that contains only the 
cSpell.words dict with two words in it. My original settings.json is gone...

Not that much of a problem, but inconvenient, as a cannot get it back, 
since git did not track it...

Hope this helps in some way!

Best,
Konstantin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help