Skip to content

Commit d848cd1

Browse files
authored
Fix: Prevent Visual Studio from stopping when deleting an item (#10597)
1 parent f3fcd04 commit d848cd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Files.App/Helpers/FileOperationsHelpers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using System.Collections.Concurrent;
1111
using System.Collections.Generic;
1212
using System.ComponentModel;
13+
using System.Diagnostics;
1314
using System.IO;
1415
using System.Linq;
1516
using System.Runtime.InteropServices;
@@ -179,7 +180,7 @@ public static Task<bool> DragDropAsync(string dropPath)
179180
}
180181

181182
var deleteTcs = new TaskCompletionSource<bool>();
182-
op.PreDeleteItem += (s, e) =>
183+
op.PreDeleteItem += [DebuggerHidden] (s, e) =>
183184
{
184185
if (!e.Flags.HasFlag(ShellFileOperations.TransferFlags.DeleteRecycleIfPossible))
185186
{

0 commit comments

Comments
 (0)