matthiasblaesing commented on PR #9289: URL: https://github.com/apache/netbeans/pull/9289#issuecomment-4246589511
This still does not work reliably. There is no trigger for updating the file list. This code: https://github.com/haidubogdan/netbeans/blob/1177661a3d0eefbd4b58bba2d86ea1246fe42df8/ide/languages.env/src/org/netbeans/modules/languages/env/project/EnvFileImpl.java#L44 ensures, that file events touching files with the name `.env` will cause an update to the file list. The code that handles that is here: https://github.com/apache/netbeans/blob/4c2749f11bfb1164a1504394e90e2fdaebde1cc6/ide/web.common/src/org/netbeans/modules/web/common/spi/ImportantFilesSupport.java#L143-L167 and here: https://github.com/apache/netbeans/blob/4c2749f11bfb1164a1504394e90e2fdaebde1cc6/ide/web.common/src/org/netbeans/modules/web/common/spi/ImportantFilesSupport.java#L67-L73 From my POV for this use case you'd need to create your own `ImportantFilesSupport` implementation that handles prefix and suffix matches. The problem that can be observed with the current implementation is this: 1. Consider this start point: <img width="601" height="296" alt="grafik" src="https://github.com/user-attachments/assets/4b195bec-9e26-47c6-8ece-6e46790dd213" /> 2. Now I create `.env.staging`. This is not picked up: <img width="601" height="296" alt="grafik" src="https://github.com/user-attachments/assets/e0e94dfa-5875-4267-9e39-f47872ddff6f" /> 3. Now I delete `.env`. This causes the list to be updated: <img width="601" height="296" alt="grafik" src="https://github.com/user-attachments/assets/85f2ee38-a9c2-4700-96e6-7ce929452531" /> 4. Now I delete `.env.staging`. The list is not updated: <img width="601" height="296" alt="grafik" src="https://github.com/user-attachments/assets/4a488ac5-c70c-4ed6-8c02-f7c8da0cea33" /> I can double click on `.env.staging`, but nothing happens. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
