How to force reparsing ??

I need to programmatically force a file to be reparsed, because the behavior of my custom-language parser can change due to an 'external' event.

But how do I accomplish this ???

TIA

2 comments

Surprisingly enough, you can't with the current API. There are any number of requests open for this sort of functionality, although usually tagged to different use cases.

--Dave

0

Thanks Dave, I got lost in OpenAPI last night :)

However, thanks to another problem I'm facing I found the unpublished class BlockSupport in a stacktrace...
and guess what... it has a method reparseRange(...) that does the trick.

I'll file an issue for inclusion of BlockSupport in the OA.

Maas

0

Please sign in to leave a comment.