本文整理汇总了TypeScript中vscode-languageserver.SignatureInformation类的典型用法代码示例。如果您正苦于以下问题:TypeScript SignatureInformation类的具体用法?TypeScript SignatureInformation怎么用?TypeScript SignatureInformation使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SignatureInformation类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: it
it('Provides signature help with no parameters', () => {
const filePath = 'mixins/imported-mixins-paramless-signature.st.css';
const sig = getSignatureHelp(filePath, '');
const exp: SignatureHelp = {
activeSignature: 0,
activeParameter: 0,
signatures: [SignatureInformation.create('paramlessMixin(): object', undefined)]
};
expect(sig).to.not.equal(null);
expect(sig).to.deep.equal(exp);
}).timeout(5000);
示例2: getSignatureHelp
() => {
const filePath = 'states/with-param/imported-state-param-and-validators-suggestion.st.css';
const sig = getSignatureHelp(filePath, prefix);
const exp: SignatureHelp = {
activeSignature: 0,
activeParameter: 0,
signatures: [
SignatureInformation.create(
'shmover(number(min(3), max(42)))',
undefined,
ParameterInformation.create('number(min(3), max(42))')
)
]
};
expect(sig).to.not.equal(null);
expect(sig).to.deep.equal(exp);
}