@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
39 lines (37 loc) • 1.32 kB
text/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 '@sussudio/base/common/uri.mjs';
export declare const IClipboardService: import('../../instantiation/common/instantiation.mjs').ServiceIdentifier<IClipboardService>;
export interface IClipboardService {
readonly _serviceBrand: undefined;
/**
* Writes text to the system clipboard.
*/
writeText(text: string, type?: string): Promise<void>;
/**
* Reads the content of the clipboard in plain text
*/
readText(type?: string): Promise<string>;
/**
* Reads text from the system find pasteboard.
*/
readFindText(): Promise<string>;
/**
* Writes text to the system find pasteboard.
*/
writeFindText(text: string): Promise<void>;
/**
* Writes resources to the system clipboard.
*/
writeResources(resources: URI[]): Promise<void>;
/**
* Reads resources from the system clipboard.
*/
readResources(): Promise<URI[]>;
/**
* Find out if resources are copied to the clipboard.
*/
hasResources(): Promise<boolean>;
}