Closed bersbersbers closed 3 years ago
This is an intended behavior.
microsoft/vscode/issues/3742
Thanks. You might add "Source Control" to the FAQ (I did check the FAQ, but "Source Control" did not match anything) and document options (I did look here, but the name of the option did not ring a bell):
Wait, I misread - this is not working. view.autoFocus.enabled
does not do anything when gits.length > 0
.
So are you are saying it is intended to reopen the Source Control sidebar when working with git, and it is intended that this cannot be turned off?
https://github.com/microsoft/vscode/issues/3742 is a different issue in my opinion. I don't want to close the side bar after some time, I would like Latex Workshop to not open it in the first place. My screen is not wide enough for two tex docs (remember, that's a side-by-side diff), a pdf preview, and a side bar.
I'd suggest that view.autoFocus.enabled
should apply to the source control sidebar as well.
My feeling is that we should remove https://github.com/James-Yu/LaTeX-Workshop/blob/4b1a338393e5bde8855f19dc8a6b9c66cdd68f45/src%2Fmain.ts#L210-L212
The other language related extensions do not seem to handle the scm view. Other filetypes do not exhibit this behaviour with the scm view.
This was introduced by 58425b41a09b938240c241a9ff4e8cde4b955d85 but I cannot really see the logic here
I have just reverted it. Wait and see if anyone complains.
Thanks - looking forward to the next release! (Update: I cherry-picked https://github.com/James-Yu/LaTeX-Workshop/commit/9c5ab86e9b852eca37bc67a4620ebb4352ead920 and built the package myself - working great, thanks again!)
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, and check that you still see this issue. [Required]
You still see this issue?: Yes
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki?: Yes
If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually?: N/A
Describe the bug [Required]
Source control panel opens unexpectedly when focusing tex file, but not txt file:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Source Control stays closed.
Logs [Required]
(I cannot copy the text due to an unrelated bug.)
LaTeX Workshop Output [Required]
Developer Tools Console [Required]
Screenshots
see above
Desktop [Required]
Additional questions
Are you using VSCodium?
No
Are you using LaTeX Workshop with VS Code Remote?
Yes, but the problem reproduces standalone