interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Only route language service commands if supported by subkernel

Open brettfo opened this issue 3 years ago • 2 comments

E.g., consider invoking hover text where $$ represents the cursor location:

#!some-kernel
do$$Something();

The current behavior is to always send RequestHoverText, but if some-kernel doesn't support that command, an exception is thrown and it makes everything messy. The better solution is to not bother sending the command if we know it won't succeed.

Same for RequestDiagnostics.

Possibly do the same in the JS proxy kernel.

brettfo avatar Oct 10 '22 23:10 brettfo

is there a quick workaround? that's annoying :D

eosfor avatar Oct 13 '23 03:10 eosfor

There isn't. The issue with output being visible is here and we're working on a fix: #3257.

jonsequitur avatar Oct 13 '23 20:10 jonsequitur