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
Refactor file discovery, cache, and output batching 🚀
- Replace ConcurrentDictionary with HashSet for file deduplication in commands
- Add FileDiscovery utility for recursive file enumeration with directory exclusion
- Standardize all file/folder searches to use FileDiscovery.EnumerateFiles
- Enhance cache to store file size and timestamp; validate both for optimization
- Support legacy cache file format for backward compatibility
- Batch output window result rows and write headers only when needed
- Batch status bar progress updates for better performance
- Extend Constants with excluded directory names and progress batch size
- Update README for improved formatting and new API/options documentation
- Add and update unit tests for file discovery and cache validation logic
|**Continue on Error**| Continue processing other images if one fails. | On|
156
+
|**Log Errors to Output**| Log detailed error information to the Output Window. | On |
157
157
158
158
## API for Extenders
159
+
159
160
Any extension can call the commands provided in the Image Optimizer extension to optimize any image. The [Markdown Editor v2](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.MarkdownEditor2) extension uses this API.
// Image Optimizer not installed // Image Optimizer not installed
178
+
}
178
179
}
179
180
```
180
181
181
182
The commands are:
182
183
183
-
* ImageOptimizer.OptimizeLossless - *Optimize for best quality*
184
-
* ImageOptimizer.OptimizeLossy - *Optimize for best compression*
185
-
* ImageOptimizer.ConvertToWebP - *Convert PNG/JPG to WebP*
186
-
* ImageOptimizer.ConvertToAvif - *Convert PNG/JPG to AVIF*
184
+
- ImageOptimizer.OptimizeLossless - *Optimize for best quality*
185
+
- ImageOptimizer.OptimizeLossy - *Optimize for best compression*
186
+
- ImageOptimizer.ConvertToWebP - *Convert PNG/JPG to WebP*
187
+
- ImageOptimizer.ConvertToAvif - *Convert PNG/JPG to AVIF*
187
188
188
189
## How can I help?
190
+
189
191
If you enjoy using the extension, please give it a ★★★★★ rating on the [Visual Studio Marketplace][marketplace].
190
192
191
193
Should you encounter bugs or if you have feature requests, head on over to the [GitHub repo][repo] to open an issue if one doesn't already exist.
192
194
193
195
Pull requests are also very welcome, since I can't always get around to fixing all bugs myself. This is a personal passion project, so my time is limited.
194
196
195
-
Another way to help out is to [sponsor me on GitHub](https://github.com/sponsors/madskristensen).
197
+
Another way to help out is to [sponsor me on GitHub](https://github.com/sponsors/madskristensen).
0 commit comments