catch error on signatureHelp

This commit is contained in:
chemzqm 2019-06-24 07:03:01 +08:00
parent 224dbe4d9e
commit 686f2b2110

View file

@ -28,7 +28,12 @@ export default class TypeScriptSignatureHelpProvider implements SignatureHelpPro
position
)
const response = await this.client.interruptGetErr(() => this.client.execute('signatureHelp', args, token))
let response
try {
response = await this.client.interruptGetErr(() => this.client.execute('signatureHelp', args, token))
} catch (e) {
return undefined
}
if (response.type !== 'response' || !response.body) {
return undefined
}