You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stop sending output contents to the extension host #13736
Since we are using an editor for the output, every thing that is added here is being sent over to the extension host process side. If you have an extension producing tons of output you basically put the extension host under DDOS attack both ways (extension sending to renderer, renderer sending back to extension host).
I do not see a use case for having the model of the output sent over to the extension host.
I see the challenge but I know of extensions that make use of the output-document - like rendering links, adding decorations, etc. There are also request to enrich this, such that when creating an output channel we allow to define the language such that more language features can be enabled for this.
In short, I am 👎 on just blocking but we should be somehow less aggressive. Tho unsure how...
I was not aware of extensions contributing to the output channel. If this is an area where we want to allow extensions then I agree we cannot just block it.
Johannes Rieken (@jrieken) I was aware of extensions that override/contribute colorization for output and my understanding is that if we stop sending output to the extension host we would still support colorization.
If an extension wants to add more to output based on the content of output, then we need to continue sending output over but I am not sure if such an extension exists today or is planned.
We are currently using colorisation via a language grammar and a document link provider for the output (vscode.languages.registerDocumentLinkProvider):
Since the output is read-only, some of the language features are irrelevant, however some could be nice to have in the output channel, like hover provider and code lens, in order to be able to have nicely formatted rich output, not just a plain text.
However, we only need to access it because of the current limitation - when using the text/x-code-output mime type, the languages and its grammar gets applied to all output channels, so we have to access the document content to make sure we are not providing the links for some other output channel.
Activity
jrieken commentedon Oct 14, 2016
I see the challenge but I know of extensions that make use of the output-document - like rendering links, adding decorations, etc. There are also request to enrich this, such that when creating an output channel we allow to define the language such that more language features can be enabled for this.
In short, I am 👎 on just blocking but we should be somehow less aggressive. Tho unsure how...
bpasero commentedon Oct 14, 2016
I was not aware of extensions contributing to the output channel. If this is an area where we want to allow extensions then I agree we cannot just block it.
jrieken commentedon Oct 14, 2016
Yeah - I think it's pretty cool what they do (#11005, https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner, https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer) and we should keep allowing that.
bpasero commentedon Oct 14, 2016
Johannes Rieken (@jrieken) I was aware of extensions that override/contribute colorization for output and my understanding is that if we stop sending output to the extension host we would still support colorization.
If an extension wants to add more to output based on the content of output, then we need to continue sending output over but I am not sure if such an extension exists today or is planned.
jrieken commentedon Oct 14, 2016
Fair point - Artem Govorov (@ArtemGovorov) regarding #11005. Is this about colorisation or also about adding things like link detection, and other
languages-features.ArtemGovorov commentedon Oct 14, 2016
We are currently using colorisation via a language grammar and a document link provider for the output (
vscode.languages.registerDocumentLinkProvider):Since the output is read-only, some of the language features are irrelevant, however some could be nice to have in the output channel, like hover provider and code lens, in order to be able to have nicely formatted rich output, not just a plain text.
bpasero commentedon Oct 14, 2016
Does this require access to the output content?
ArtemGovorov commentedon Oct 14, 2016
We do access the passed document content (not sure if that's what you're asking about though):
However, we only need to access it because of the current limitation - when using the text/x-code-output mime type, the languages and its grammar gets applied to all output channels, so we have to access the document content to make sure we are not providing the links for some other output channel.
bpasero commentedon Oct 17, 2016
Ok thanks.