本文整理汇总了TypeScript中vscode-languageserver.SignatureInformation.create方法的典型用法代码示例。如果您正苦于以下问题:TypeScript SignatureInformation.create方法的具体用法?TypeScript SignatureInformation.create怎么用?TypeScript SignatureInformation.create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vscode-languageserver.SignatureInformation
的用法示例。
在下文中一共展示了SignatureInformation.create方法的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);
}