vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
813 stars 129 forks source link

Remote content link validation can exceed its max simultaneous fetch threads #798

Closed vsch closed 4 years ago

vsch commented 4 years ago

The content cache for remote links is a project service instead of an application service. Remote links don't change for different projects.

The simultaneous fetch limit was enforced pre project. Each open project could potentially use another max fetch limit threads while updating the cache.

The content should be per application and fetch limit is also per application, which makes more sense.

Additionally, any pending fetch tasks should be cancelled when the cache is cleared.