Open azatsarynnyy opened 3 years ago
I've filed the related upstream issue https://github.com/eclipse-theia/theia/issues/8855 If we decide it's an upstream bug then fixing it upstream will fix this one as well, in Che-Theia. If https://github.com/eclipse-theia/theia/issues/8855 is a feature then we should investigate how to fix it in Che-Theia.
Not sure if it's related: https://github.com/eclipse/che-theia/pull/528
Not sure if it's related: eclipse/che-theia#528
It seems related. Thanks!
Issues go stale after 180
days of inactivity. lifecycle/stale
issues rot after an additional 7
days of inactivity and eventually close.
Mark the issue as fresh with /remove-lifecycle stale
in a new comment.
If this issue is safe to close now please do so.
Moderators: Add lifecycle/frozen
label to avoid stale mode.
It ain't going away until we fix it :-)
Describe the bug
If a plug-in logs to the console from
vscode.TextDocumentChangeEvent
listener function it leads to the cyclic messaging.Investigation details.
When a plug-in writes to the console the messages are forwarded to Che-Theia output channel. Output channel widget's content is rendered with Monaco editor. That means every message sent to the console adds a content to a Monaco editor which fires it's
onDidChangeContent
event. This event is passed to the plug-in system. If a plug-in sets a listener withvscode.workspace.onDidChangeTextDocument
Plug-in API and logs to the console from inside the listener function it causes the cyclic messaging. E.g.:Note, the issue isn't reproduced on upstream Theia.
Che version
Steps to reproduce
hosted-instance-log
output channel view (View->Output).Expected behavior
console.log
from inside avscode.workspace.onDidChangeTextDocument
listener function shouldn't cause firing Monaco'sonDidChangeContent
event.Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Screenshots
Installation method
chectl version
commandEnvironment
Eclipse Che Logs
Additional context