Marker onChange only fired when marker invalidated?


I want to mark a text region and do some updates is the text inside that region changes. I tried subscribing to the “onDidChange” event but it seems to only fire when the marker is actually invalidated. The marker event has an ‘isValid’ field so it seems it fire event whenever text edits that change head or tail happen at least… anyone got a better understanding of this?


Have you tried changing the invalidation strategy to inside?