Path: blob/main/src/vs/platform/checksum/common/checksumService.ts
3296 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 { URI } from '../../../base/common/uri.js';6import { createDecorator } from '../../instantiation/common/instantiation.js';78export const IChecksumService = createDecorator<IChecksumService>('checksumService');910export interface IChecksumService {1112readonly _serviceBrand: undefined;1314/**15* Computes the checksum of the contents of the resource.16*/17checksum(resource: URI): Promise<string>;18}192021