提交 38573905 编写于 作者: B Benjamin Pasero

💄

上级 78e645d1
...@@ -9,6 +9,7 @@ import Mouse = require('vs/base/browser/mouseEvent'); ...@@ -9,6 +9,7 @@ import Mouse = require('vs/base/browser/mouseEvent');
import { DefaultDragAndDrop } from 'vs/base/parts/tree/browser/treeDefaults'; import { DefaultDragAndDrop } from 'vs/base/parts/tree/browser/treeDefaults';
import URI from 'vs/base/common/uri'; import URI from 'vs/base/common/uri';
import { basename } from 'vs/base/common/paths'; import { basename } from 'vs/base/common/paths';
import { getPathLabel } from 'vs/base/common/labels';
export class ElementsDragAndDropData implements _.IDragAndDropData { export class ElementsDragAndDropData implements _.IDragAndDropData {
...@@ -115,7 +116,7 @@ export class SimpleFileResourceDragAndDrop extends DefaultDragAndDrop { ...@@ -115,7 +116,7 @@ export class SimpleFileResourceDragAndDrop extends DefaultDragAndDrop {
// Apply some datatransfer types to allow for dragging the element outside of the application // Apply some datatransfer types to allow for dragging the element outside of the application
const resource = this.toResource(source); const resource = this.toResource(source);
if (resource) { if (resource) {
originalEvent.dataTransfer.setData('text/plain', resource.fsPath); originalEvent.dataTransfer.setData('text/plain', getPathLabel(resource));
} }
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册