only calculate for chat provider

This commit is contained in:
meganrogge
2024-03-06 10:50:37 -08:00
parent 828d3c030e
commit 7bbdb593f4
@@ -362,7 +362,7 @@ export class AccessibleView extends Disposable {
}
calculateCodeBlocks(markdown: string): void {
if (!this._currentProvider) {
if (!this._currentProvider || this._currentProvider.options.id !== AccessibleViewProviderId.Chat) {
return;
}
if (this._currentProvider.options.language && this._currentProvider.options.language !== 'markdown') {