yassh / vscode-copy-with-line-numbers

MIT License
15 stars 12 forks source link

replaced copy with vscode.env.clipboard #13

Open InfectedIsm opened 7 months ago

InfectedIsm commented 7 months ago

Based on issue #6 I have replaced copy with vscode.env.clipboard.writeText :

File: src\copy-with-line-numbers.ts
66: 
67: ➡  vscode.env.clipboard.writeText(str).then(() => {
68:     const showSuccessMessage = vscode.workspace.getConfiguration('copyWithLineNumbers').get('showSuccessMessage');
69:     if (showSuccessMessage)
70:         vscode.window.showInformationMessage('Copied!');
71:     })

The extension now works also with remote connections