Skip to content

Commit 4f3d9f5

Browse files
committed
Trying to get quick diff guttering to show
1 parent 9d0ee51 commit 4f3d9f5

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

extension.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,13 @@ function activate(context) {
103103
const removed = sourceControl.createResourceGroup('removed', 'Removed');
104104
const notTracked = sourceControl.createResourceGroup('unversioned', 'Not Tracked');
105105

106-
const QuickDiffProvider = {
107-
provideOriginalResource(uri) {
108-
if (uri.scheme !== 'file') {
109-
return;
110-
}
111-
112-
// As a mitigation for extensions like ESLint showing warnings and errors
113-
// for hg URIs, let's change the file extension of these uris to .hg.
114-
return new Uri().with({ scheme: 'svn-original', query: uri.path, path: uri.path});
106+
sourceControl.provideOriginalResource = (uri) => {
107+
if (uri.scheme !== 'file') {
108+
return;
115109
}
116-
}
117110

118-
sourceControl.quickDiffProvider = QuickDiffProvider;
111+
return vscode.Uri.with({ scheme: 'svn', query: uri.path, path: uri.path});
112+
};
119113

120114
modified.hideWhenEmpty = true;
121115
removed.hideWhenEmpty = true;

0 commit comments

Comments
 (0)