/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { createDecorator } from '../../../../vs/platform/instantiation/common/instantiation'; export const IClipboardService = createDecorator('clipboardService'); export interface IClipboardService { readonly _serviceBrand: undefined; /** * Writes text to the system clipboard. */ writeText(text: string, type?: string): Promise; /** * Reads the content of the clipboard in plain text */ readText(type?: string): Promise; /** * Reads text from the system find pasteboard. */ readFindText(): Promise; /** * Writes text to the system find pasteboard. */ writeFindText(text: string): Promise; }