Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit518e59b

Browse files
pnobreKevinRansom
authored andcommitted
fixed drag and drop issues from files into folders in solution explorer (#4095)
1 parent72f0e92 commit518e59b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

‎vsintegration/src/FSharp.ProjectSystem.Base/Project/ProjectNode.CopyPaste.cs‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ public override int DragEnter(IOleDataObject pDataObject, uint grfKeyState, uint
3939
{
4040
pdwEffect=(uint)DropEffect.None;
4141

42-
if(this.SourceDraggedOrCutOrCopied)
43-
{
44-
returnVSConstants.S_OK;
45-
}
46-
4742
this.dropDataType=QueryDropDataType(pDataObject);
4843
if(this.dropDataType!=DropDataType.None)
4944
{

‎vsintegration/src/FSharp.ProjectSystem.Base/Project/ProjectNode.cs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4922,8 +4922,12 @@ internal int AddItemWithSpecific(uint itemIdLoc, VSADDITEMOPERATION op, string i
49224922

49234923
if(context==AddItemContext.Paste&&FindChild(file)!=null)
49244924
{
4925-
// if we are doing 'Paste' and source file belongs to current project - generate fresh unique name
4926-
newFileName=GenerateCopyOfFileName(baseDir,fileName);
4925+
newFileName=Path.Combine(baseDir,fileName);
4926+
if(FindChild(newFileName)!=null)
4927+
{
4928+
// if we are doing 'Paste' and source file belongs to current project - generate fresh unique name
4929+
newFileName=GenerateCopyOfFileName(baseDir,fileName);
4930+
}
49274931
}
49284932
elseif(!IsContainedWithinProjectDirectory(file))
49294933
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp