Marker onChange only fired when marker invalidated?


#1

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?


#2

Have you tried changing the invalidation strategy to inside?