Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/platform/checksum/common/checksumService.ts
3296 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 { URI } from '../../../base/common/uri.js';
7
import { createDecorator } from '../../instantiation/common/instantiation.js';
8
9
export const IChecksumService = createDecorator<IChecksumService>('checksumService');
10
11
export interface IChecksumService {
12
13
readonly _serviceBrand: undefined;
14
15
/**
16
* Computes the checksum of the contents of the resource.
17
*/
18
checksum(resource: URI): Promise<string>;
19
}
20
21