sussudio
Version:
An unofficial VS Code Internal API
38 lines (37 loc) • 1.4 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 "../../../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>;
}