An extension I have created uses the comments API to create threads that display documentation. In some cases the documentation is lengthy. I would like to be able to set a height limit on the comments-container div.
I experimented by modifying this code:
|
display() { |
|
this._commentsElement = dom.append(this.container, dom.$('div.comments-container')); |
|
this._commentsElement.setAttribute('role', 'presentation'); |
|
this._commentsElement.tabIndex = 0; |
|
this._updateAriaLabel(); |
adding this line to hard-wire a maximum height and vertical scrolling:
this._commentsElement.setAttribute('style', 'max-height: 15em; overflow-y: auto;');
It seemed to work.

Would you be open to a proper implementation of this as proposed API?
An extension I have created uses the comments API to create threads that display documentation. In some cases the documentation is lengthy. I would like to be able to set a height limit on the comments-container div.
I experimented by modifying this code:
vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.ts
Lines 70 to 74 in 56ba527
adding this line to hard-wire a maximum height and vertical scrolling:
It seemed to work.
Would you be open to a proper implementation of this as proposed API?