mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
fixes #62865
This commit is contained in:
parent
e92b1ac386
commit
723ea47d62
|
@ -74,10 +74,10 @@ export class CopyAllAction extends Action {
|
|||
const navigator = this.tree.getNavigator();
|
||||
// skip first navigator element - the root node
|
||||
while (navigator.next()) {
|
||||
if (text) {
|
||||
if (text && text.length > 0 && text[text.length - 1] !== lineDelimiter) {
|
||||
text += lineDelimiter;
|
||||
}
|
||||
text += (<IReplElement>navigator.current()).toString().trimRight();
|
||||
text += (<IReplElement>navigator.current()).toString();
|
||||
}
|
||||
|
||||
clipboard.writeText(removeAnsiEscapeCodes(text));
|
||||
|
|
Loading…
Reference in a new issue