{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/60813","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/60813/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/60813/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/60813/events","html_url":"https://github.com/Microsoft/vscode/issues/60813","id":369740653,"node_id":"MDU6SXNzdWUzNjk3NDA2NTM=","number":60813,"title":"createFileSystemWatcher doesn't notify if parent folder results in watched file path change","user":{"login":"NTaylorMullen","id":2008729,"node_id":"MDQ6VXNlcjIwMDg3Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/2008729?v=4","gravatar_id":"","url":"https://api.github.com/users/NTaylorMullen","html_url":"https://github.com/NTaylorMullen","followers_url":"https://api.github.com/users/NTaylorMullen/followers","following_url":"https://api.github.com/users/NTaylorMullen/following{/other_user}","gists_url":"https://api.github.com/users/NTaylorMullen/gists{/gist_id}","starred_url":"https://api.github.com/users/NTaylorMullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTaylorMullen/subscriptions","organizations_url":"https://api.github.com/users/NTaylorMullen/orgs","repos_url":"https://api.github.com/users/NTaylorMullen/repos","events_url":"https://api.github.com/users/NTaylorMullen/events{/privacy}","received_events_url":"https://api.github.com/users/NTaylorMullen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jrieken","id":1794099,"node_id":"MDQ6VXNlcjE3OTQwOTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1794099?v=4","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"assignees":[{"login":"jrieken","id":1794099,"node_id":"MDQ6VXNlcjE3OTQwOTk=","avatar_url":"https://avatars2.githubusercontent.com/u/1794099?v=4","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-10-12T23:23:58Z","updated_at":"2018-10-13T02:12:46Z","closed_at":null,"author_association":"NONE","body":"- VSCode Version: 1.28.0\r\n- OS Version: Win10-x64\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a file system watcher that monitors adds/removes:\r\n```TypeScript\r\n...\r\n        const watcher = vscode.workspace.createFileSystemWatcher('**/*.csproj*');\r\n        const createRegistration = watcher.onDidCreate(async (uri: vscode.Uri) => {\r\n            console.log('CSProj added: ' + uri.toString());\r\n        });\r\n\r\n        const deleteRegistration = watcher.onDidDelete(async (uri: vscode.Uri) => {\r\n            console.log('CSProj removed: ' + uri.toString());\r\n        });\r\n...\r\n```\r\n2. Change the parent folder of a csproj\r\n\r\nExpected: remove => create gets called on the watched files\r\nActual: Nothing fires\r\n\r\n\r\n#### Additional Notes\r\nSeeing this in practice in the Razor VSCode extension: https://github.com/aspnet/Razor.VSCode/blob/05b60813dd446fc4a21529a3513aeec186886465/src/Microsoft.AspNetCore.Razor.VSCode/src/RazorProjectTracker.ts#L25-L32"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/429503200","html_url":"https://github.com/Microsoft/vscode/issues/60813#issuecomment-429503200","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/60813","id":429503200,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTUwMzIwMA==","user":{"login":"creal1976","id":43392351,"node_id":"MDQ6VXNlcjQzMzkyMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/43392351?v=4","gravatar_id":"","url":"https://api.github.com/users/creal1976","html_url":"https://github.com/creal1976","followers_url":"https://api.github.com/users/creal1976/followers","following_url":"https://api.github.com/users/creal1976/following{/other_user}","gists_url":"https://api.github.com/users/creal1976/gists{/gist_id}","starred_url":"https://api.github.com/users/creal1976/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creal1976/subscriptions","organizations_url":"https://api.github.com/users/creal1976/orgs","repos_url":"https://api.github.com/users/creal1976/repos","events_url":"https://api.github.com/users/creal1976/events{/privacy}","received_events_url":"https://api.github.com/users/creal1976/received_events","type":"User","site_admin":false},"created_at":"2018-10-13T02:12:46Z","updated_at":"2018-10-13T02:12:46Z","author_association":"NONE","body":"Stop emailing me or I will report you for harrasment\r\n\r\nSent from my Verizon Wireless 4G LTE DROID\r\n\r\n\r\n\"N. Taylor Mullen\" <notifications@github.com> wrote:\r\n\r\n\r\n  *   VSCode Version: 1.28.0\r\n  *   OS Version: Win10-x64\r\n\r\nSteps to Reproduce:\r\n\r\n  1.  Create a file system watcher that monitors adds/removes:\r\n\r\n...\r\n        const watcher = vscode.workspace.createFileSystemWatcher('**/*.csproj*');\r\n        const createRegistration = watcher.onDidCreate(async (uri: vscode.Uri) => {\r\n            console.log('CSProj added: ' + uri.toString());\r\n        });\r\n\r\n        const deleteRegistration = watcher.onDidDelete(async (uri: vscode.Uri) => {\r\n            console.log('CSProj removed: ' + uri.toString());\r\n        });\r\n...\r\n\r\n  1.  Change the parent folder of a csproj\r\n\r\nExpected: remove => create gets called on the watched files\r\nActual: Nothing fires\r\n\r\nAdditional Notes\r\n\r\nSeeing this in practice in the Razor VSCode extension: https://github.com/aspnet/Razor.VSCode/blob/05b60813dd446fc4a21529a3513aeec186886465/src/Microsoft.AspNetCore.Razor.VSCode/src/RazorProjectTracker.ts#L25-L32\r\n\r\n—\r\nYou are receiving this because you are subscribed to this thread.\r\nReply to this email directly, view it on GitHub<https://github.com/Microsoft/vscode/issues/60813>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ApYdX_WcowzGeEUfGzLHONHdMMsz7--Oks5ukSUCgaJpZM4XaUzV>.\r\n"}}
{"actor":{"display_login":"creal1976"}}