Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/extensions/copilot/src/platform/git/common/nullGitDiffService.ts
13401 views
1
/*---------------------------------------------------------------------------------------------
2
* Copyright (c) Microsoft Corporation. All rights reserved.
3
* Licensed under the MIT License. See License.txt in the project root for license information.
4
*--------------------------------------------------------------------------------------------*/
5
6
import type { CancellationToken, Uri } from 'vscode';
7
import { Change, Repository } from '../vscode/git';
8
import { Diff, IGitDiffService } from './gitDiffService';
9
10
export class NullGitDiffService implements IGitDiffService {
11
declare readonly _serviceBrand: undefined;
12
13
async getChangeDiffs(_repository: Repository | Uri, _changes: Change[], _token?: CancellationToken): Promise<Diff[]> {
14
return [];
15
}
16
17
async getWorkingTreeDiffsFromRef(_repository: Repository | Uri, _changes: Change[], _ref: string, _token?: CancellationToken): Promise<Diff[]> {
18
return [];
19
}
20
}
21
22