New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SCM diff gutter is not working since v1.48 #104640
Comments
Confirming the same behavior, diff gutters are gone. VS Code: Version: 1.48.0 |
Confirming the same behavior in vscode-hg: mrcrowl/vscode-hg#158 |
Looking at git extension, seems it is using registerFileSystemProvider, while vscode-hg uses registerTextDocumentContentProvider. I'm not sure what the differences are between the two. |
I've reimplemented Mercurial's context provider in terms of registerFileSystemProvider and the gutter indicator works. Used https://github.com/microsoft/vscode/blob/master/extensions/git/src/fileSystemProvider.ts as reference. |
@joaomoreno @mjbvz please let us know if SCM extensions should be moved to use FileSystemProvider or stick to TextDocumentContentProvider FileSystemProvider was added to git on 7 Nov 2019 (5d60b7f) TextDocumentContentProvider was removed from git on 15 Apr 2020 (b8512b2) |
since @joaomoreno is on vacation forwarding to @eamodio as he might know more |
@hdpoliveira As for a recommendation, I would say it depends on the use-case. If you were to start today, I would definitely recommend using a I will dig into what changed with the |
Hi @eamodio ! |
I'm pretty sure this was introduced because of this commit: 003a367, but still investigating a fix |
@eamodio thanks for investigating, should this be a candidate (sounds like a regression, but not high impact). You would know better. |
I can also confirm with @JohnstonCode, except my OS is Windows 10. I'm using SVN as the SCM. |
The issue has gone away - I can see the gutters are now available again with release 1.48.2. |
The issue is still there for me - Ubuntu 18.04, vscode 1.48.2. |
Can confirm gutter diff is showing up again on 1.48.2 under Windows and Linux. |
Okay, gutter diff is showing up again, but only if you get the latest version of SVN-SCM (JohnstonCode/svn-scm#1053), the fix was not due to the new VSCode release (1.48.2). |
This was definitely an unintended breakage. Looking into where the assumption actually breaks down... |
I believe the wrong assumption lies here:
This breaks down with model references coming in from |
Thanks to @bpasero for the help in fixing this! |
Confirmed that this works now works using an svn project: |
When will this fix be released? v1.49? |
@DavidGoldman yes, this will be in out in the August release (1.49) which should drop next week. It's already fixed on our Insiders (nightly build). You can also use Settings Sync to sync your settings/extensions/keybindings between Insiders and Stable. |
Steps to Reproduce:
Does this issue occur when all extensions are disabled?: Yes (with all other extensions apart from the svn one)
Works in VSCode v1.47.3
The text was updated successfully, but these errors were encountered: