mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-24 05:40:29 -04:00
Merge from vscode 52dcb723a39ae75bee1bd56b3312d7fcdc87aeed (#6719)
This commit is contained in:
@@ -206,8 +206,6 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget,
|
||||
dom.append(this.docs, $('p', {}, documentation));
|
||||
}
|
||||
|
||||
dom.toggleClass(this.signature, 'has-docs', !!signature.documentation);
|
||||
|
||||
if (signature.documentation === undefined) { /** no op */ }
|
||||
else if (typeof signature.documentation === 'string') {
|
||||
dom.append(this.docs, $('p', {}, signature.documentation));
|
||||
@@ -218,6 +216,23 @@ export class ParameterHintsWidget extends Disposable implements IContentWidget,
|
||||
dom.append(this.docs, renderedContents.element);
|
||||
}
|
||||
|
||||
let hasDocs = false;
|
||||
if (activeParameter && typeof (activeParameter.documentation) === 'string' && activeParameter.documentation.length > 0) {
|
||||
hasDocs = true;
|
||||
}
|
||||
if (activeParameter && typeof (activeParameter.documentation) === 'object' && activeParameter.documentation.value.length > 0) {
|
||||
hasDocs = true;
|
||||
}
|
||||
if (typeof (signature.documentation) === 'string' && signature.documentation.length > 0) {
|
||||
hasDocs = true;
|
||||
}
|
||||
if (typeof (signature.documentation) === 'object' && signature.documentation.value.length > 0) {
|
||||
hasDocs = true;
|
||||
}
|
||||
|
||||
dom.toggleClass(this.signature, 'has-docs', hasDocs);
|
||||
dom.toggleClass(this.docs, 'empty', !hasDocs);
|
||||
|
||||
let currentOverload = String(hints.activeSignature + 1);
|
||||
|
||||
if (hints.signatures.length < 10) {
|
||||
|
||||
Reference in New Issue
Block a user