I noticed you introduced caching for the intentions list in 1.1.3. Caching is a neat thing, but it seems that this cache keeps the list in its entirety cached for the entire editor until it changes. This is a problem for me as my packages provide contextual intentions (i.e. what intentions are displayed depend on the cursor position). For example: you can only generate getters if you are in a class, you can only extract code into a method when you have a selection, you can only show documentation when the cursor is on a structural element, ...
With this change, the list is now generated once and then is the same everywhere until the editor is modified.
Is there perhaps an option I need to pass back or a flag I need to set in my provider to ensure the results can be dynamic?
Hello
I noticed you introduced caching for the intentions list in 1.1.3. Caching is a neat thing, but it seems that this cache keeps the list in its entirety cached for the entire editor until it changes. This is a problem for me as my packages provide contextual intentions (i.e. what intentions are displayed depend on the cursor position). For example: you can only generate getters if you are in a class, you can only extract code into a method when you have a selection, you can only show documentation when the cursor is on a structural element, ...
With this change, the list is now generated once and then is the same everywhere until the editor is modified.
Is there perhaps an option I need to pass back or a flag I need to set in my provider to ensure the results can be dynamic?
Thanks!