mirror of
https://github.com/coder/code-server.git
synced 2026-05-08 21:37:27 +02:00
19 lines
791 B
TypeScript
19 lines
791 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { URI } from 'vs/base/common/uri';
|
|
import { createDecorator } from 'vs/platform/instantiation/common/instantiation';
|
|
import { CancellationToken } from 'vs/base/common/cancellation';
|
|
|
|
export const IDownloadService = createDecorator<IDownloadService>('downloadService');
|
|
|
|
export interface IDownloadService {
|
|
|
|
readonly _serviceBrand: undefined;
|
|
|
|
download(uri: URI, to: URI, cancellationToken?: CancellationToken): Promise<void>;
|
|
|
|
}
|