mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
implement browser clipboard service (#75293)
* implement browser clipboard service * actually register the clipboard service * update all refs to newly async funcs * addressing comments * small fixes * all asyncs as a result of readText * fix unit test * cleanup for writeText refs * cleanup and reduce diff noise * qfix * address feedback
This commit is contained in:
committed by
Benjamin Pasero
parent
9f7ba6990d
commit
305d5be119
@@ -20,11 +20,10 @@ export class MainThreadClipboard implements MainThreadClipboardShape {
|
||||
}
|
||||
|
||||
$readText(): Promise<string> {
|
||||
return Promise.resolve(this._clipboardService.readText());
|
||||
return this._clipboardService.readText();
|
||||
}
|
||||
|
||||
$writeText(value: string): Promise<void> {
|
||||
this._clipboardService.writeText(value);
|
||||
return Promise.resolve();
|
||||
return this._clipboardService.writeText(value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user