Closed amunger closed 6 months ago
no errors are shown in the cell input, likely because the editor is read-only
I can't repro in OSS, so maybe it's fixed in the latest
@rchiodo - This only repro's with Pylance pre-release, but I still can't get it to repro in OSS to track down where the decoration is being set.
Do you know if there were any changes to Pylance in regards to checking read-only editors? The tooltip for the tab is "Contains emphasized items" if that's any help. Also, any idea why the behavior would change in OSS?
cc @bpasero in case you have any ideas for where to look.
I'm confused as to why this is a bug? Seems like a syntax error to me?
What is the wanted behavior?
Oh and pylance shouldn't know if the editor is read only or not. We do have some special case code for the interactive window though:
The code here hasn't changed in a long time, but perhaps some event or functionality in VS code we rely on has changed.
Oh I think I figured out what the wanted behavior is. You want an error in the cell, not in the output.
Kinda like this:
An error within the cell would probably be a nice improvement, but I was more concerned with marking the whole tab as in an error state for an editor that the user cannot change (except for just deleting the cell).
Steps to Reproduce: