提交 40b5ba9c 编写于 作者: B Benjamin Pasero

web - workaround clipboard issue with selection type

上级 92dafb39
......@@ -15,10 +15,18 @@ export class BrowserClipboardService implements IClipboardService {
private _internalResourcesClipboard: URI[] | undefined;
async writeText(text: string, type?: string): Promise<void> {
if (type) {
return; // TODO@sbatten
}
return navigator.clipboard.writeText(text);
}
async readText(type?: string): Promise<string> {
if (type) {
return ''; // TODO@sbatten
}
return navigator.clipboard.readText();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册