提交 eca861e2 编写于 作者: I isidor

fixes #42597

上级 d359f2c8
......@@ -414,7 +414,8 @@ const copyPathHandler = (accessor, resource: URI) => {
const resources = getMultiSelectedResources(resource, accessor.get(IListService), accessor.get(IWorkbenchEditorService));
if (resources.length) {
const clipboardService = accessor.get(IClipboardService);
const text = resources.map(r => r.scheme === 'file' ? labels.getPathLabel(r) : r.toString()).join('\n');
const lineDelimiter = isWindows ? '\r\n' : '\n';
const text = resources.map(r => r.scheme === 'file' ? labels.getPathLabel(r) : r.toString()).join(lineDelimiter);
clipboardService.writeText(text);
} else {
const messageService = accessor.get(IMessageService);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册