mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
18
src/vs/workbench/services/hash/node/hashService.ts
Normal file
18
src/vs/workbench/services/hash/node/hashService.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import { createHash } from 'crypto';
|
||||
import { IHashService } from 'vs/workbench/services/hash/common/hashService';
|
||||
|
||||
export class HashService implements IHashService {
|
||||
|
||||
_serviceBrand: any;
|
||||
|
||||
public createSHA1(content: string): string {
|
||||
return createHash('sha1').update(content).digest('hex');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user