Skip to content

Commit b8f63e9

Browse files
author
Benjamin Pasero
committed
code 💄
1 parent d5c5c02 commit b8f63e9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/platform/electron/electron-main/electronMainService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export class ElectronMainService implements IElectronMainService {
327327
}
328328

329329
async writeClipboardBuffer(windowId: number | undefined, format: string, buffer: Uint8Array, type?: 'selection' | 'clipboard'): Promise<void> {
330-
return clipboard.writeBuffer(format, buffer as Buffer, type);
330+
return clipboard.writeBuffer(format, Buffer.from(buffer), type);
331331
}
332332

333333
async readClipboardBuffer(windowId: number | undefined, format: string): Promise<Uint8Array> {

src/vs/workbench/services/host/browser/browserHostService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class BrowserHostService extends Disposable implements IHostService {
283283
}
284284

285285
private async doOpenEmptyWindow(options?: IOpenEmptyWindowOptions): Promise<void> {
286-
this.workspaceProvider.open(undefined, { reuse: options?.forceReuseWindow });
286+
return this.workspaceProvider.open(undefined, { reuse: options?.forceReuseWindow });
287287
}
288288

289289
async toggleFullScreen(): Promise<void> {

0 commit comments

Comments
 (0)