Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 11 forks source link

Configure FileSystemWatcher to only watch for relevant file extensions #587

Open e9gille opened 10 months ago

e9gille commented 10 months ago

Is your feature request related to a problem? Please describe. When linking a folder that contains both apl files and other files, link currently gets notified on events on all files. If the non-apl files get modified in batch, it leads to an overflow of events and Link reports that it has paused, prompting the user to issue a Refresh command.

Describe the solution you'd like Link should configure the FileSystemWatcher to only notify on events related to files it needs to know about.

Describe alternatives you've considered We could separate the files on disk so apl files are in their own folder, but it would still be good for link to only focus on relevant files.

Additional context I can see that the FileSystemWatcher on dotnet has a Filters property that could be used. In the Framework version the only option is to create multiple instances, one for each filter.

e9gille commented 10 months ago

We'd like this feature in v3.0