This commit is contained in:
isidor 2021-08-16 14:36:02 +02:00
parent 2b5d0607d5
commit 59eac5771b
No known key found for this signature in database
GPG key ID: F9280366A8370105

View file

@ -263,6 +263,9 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget {
if (param.documentation) {
labelToAnnounce += typeof param.documentation === 'string' ? `, ${param.documentation}` : `, ${param.documentation.value}`;
}
if (signature.documentation) {
labelToAnnounce += typeof signature.documentation === 'string' ? `, ${signature.documentation}` : `, ${signature.documentation.value}`;
}
// Select method gets called on every user type while parameter hints are visible.
// We do not want to spam the user with same announcements, so we only announce if the current parameter changed.