mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
use ?? (#148577)
This commit is contained in:
parent
57479a5f6b
commit
52ff0231ad
|
@ -1154,7 +1154,7 @@ export class TerminalInstance extends Disposable implements ITerminalInstance {
|
|||
const textAsHtml = await xterm.getSelectionAsHtml(command);
|
||||
function listener(e: any) {
|
||||
if (!e.clipboardData.types.includes('text/plain')) {
|
||||
e.clipboardData.setData('text/plain', command?.getOutput());
|
||||
e.clipboardData.setData('text/plain', command?.getOutput() ?? '');
|
||||
}
|
||||
e.clipboardData.setData('text/html', textAsHtml);
|
||||
e.preventDefault();
|
||||
|
|
Loading…
Reference in a new issue