catch error on signatureHelp
This commit is contained in:
parent
224dbe4d9e
commit
686f2b2110
1 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue