Path: blob/main/extensions/copilot/src/platform/git/common/nullGitDiffService.ts
13401 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import type { CancellationToken, Uri } from 'vscode';6import { Change, Repository } from '../vscode/git';7import { Diff, IGitDiffService } from './gitDiffService';89export class NullGitDiffService implements IGitDiffService {10declare readonly _serviceBrand: undefined;1112async getChangeDiffs(_repository: Repository | Uri, _changes: Change[], _token?: CancellationToken): Promise<Diff[]> {13return [];14}1516async getWorkingTreeDiffsFromRef(_repository: Repository | Uri, _changes: Change[], _ref: string, _token?: CancellationToken): Promise<Diff[]> {17return [];18}19}202122