Skip to content

Commit a0a9b78

Browse files
authored
Dragging multi-line text/uri-list from tree to editor results in error (microsoft#151224)
Fixes microsoft#148411
1 parent 2a63d7b commit a0a9b78

File tree

1 file changed

+1
-1
lines changed
  • src/vs/workbench/browser

1 file changed

+1
-1
lines changed

src/vs/workbench/browser/dnd.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function extractTreeDropData(dataTransfer: VSDataTransfer): Promise
6060
if (dataTransfer.has(resourcesKey)) {
6161
try {
6262
const asString = await dataTransfer.get(resourcesKey)?.asString();
63-
const rawResourcesData = JSON.stringify(asString?.split('\\n').filter(value => !value.startsWith('#')));
63+
const rawResourcesData = JSON.stringify(asString?.split('\n').filter(value => !value.startsWith('#')));
6464
editors.push(...createDraggedEditorInputFromRawResourcesData(rawResourcesData));
6565
} catch (error) {
6666
// Invalid transfer

0 commit comments

Comments
 (0)