Method
scheduleRequest
(
plugin: LSPPlugin,
context: SignatureHelpContext,
delay: number,
)
Source from the content-addressed store, hash-verified
| 656 | } |
| 657 | |
| 658 | scheduleRequest( |
| 659 | plugin: LSPPlugin, |
| 660 | context: SignatureHelpContext, |
| 661 | delay: number, |
| 662 | ) { |
| 663 | if (this.delayedRequest) { |
| 664 | clearTimeout(this.delayedRequest); |
| 665 | } |
| 666 | this.delayedRequest = window.setTimeout(() => { |
| 667 | this.delayedRequest = 0; |
| 668 | this.startRequest(plugin, context); |
| 669 | }, delay); |
| 670 | } |
| 671 | |
| 672 | startRequest(plugin: LSPPlugin, context: SignatureHelpContext) { |
| 673 | if (this.delayedRequest) { |
Tested by
no test coverage detected