You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug.Assert(numberOfFilesChanged==filesChanged.Length&&numberOfFilesChanged==flags.Length,"number of files changed doesn't match actual files reported.");
46
+
47
+
ProcessFileChanges(filesChanged,flags);
68
48
69
49
returnVSConstants.S_OK;
70
50
}
71
51
72
-
/// <summary>
73
-
/// Notifies clients of changes made to a directory.
74
-
/// </summary>
75
-
/// <param name="directory">Name of the directory that had a change.</param>
76
-
/// <returns>If the method succeeds, it returns S_OK. If it fails, it returns an error code. </returns>
77
52
publicintDirectoryChanged(stringdirectory)
78
53
{
79
-
returnVSConstants.S_OK;
54
+
// not called since we implement DirectoryChangedEx2
(_VSFILECHANGEFLAGS)0/* default for now, until VS implements API that returns actual change */));
83
+
Debug.Assert(numberOfFilesChanged==filesChanged.Length&&numberOfFilesChanged==flags.Length,"number of files changed doesn't match actual files reported.");
Copy file name to clipboardExpand all lines: Nodejs/Product/Nodejs/SharedProject/StructuresEnums.cs
+24-9Lines changed: 24 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
2
2
3
3
usingSystem;
4
+
usingSystem.Diagnostics;
5
+
usingSystem.IO;
4
6
usingSystem.Runtime.InteropServices;
5
7
usingMicrosoft.VisualStudio.Shell.Interop;
6
8
@@ -296,26 +298,39 @@ public sealed class FileChangedOnDiskEventArgs : EventArgs
296
298
/// </summary>
297
299
publicreadonlystringFileName;
298
300
299
-
/// <summary>
300
-
/// The item ide of the file that has changed.
301
-
/// </summary>
302
-
publicreadonlyuintItemID;
303
-
304
301
/// <summary>
305
302
/// The reason the file has changed on disk.
306
303
/// </summary>
307
-
publicreadonly_VSFILECHANGEFLAGSFileChangeFlag;
304
+
publicreadonlyWatcherChangeTypesFileChange;
308
305
309
306
/// <summary>
310
307
/// Constructs a new event args.
311
308
/// </summary>
312
309
/// <param name="fileName">File name that was changed on disk.</param>
313
310
/// <param name="id">The item id of the file that was changed on disk.</param>
0 commit comments