nim-lang / langserver

The Nim language server implementation (based on nimsuggest)
204 stars 31 forks source link

Expands how cancellable requests work #236

Closed jmgomez closed 2 months ago

jmgomez commented 2 months ago

Now they are PendingRequests and we keep track of the nimsuggest instance that depends on it (when possible) and also the time it got triggered. The pending requests are shown in the extension status panel, later we will be using the active pending requests to determine if a given instance of ns is hanging so we can restart it without user intervention

image

Notice the Pending Requests (15) in the img above are there because the ls is not removing complete requests, but in a regular usage they shouldnt be there (we may introduce a toggle for debugging purposes that dont remove them when complete) or we could just show all and remove complete ones after certain period has passed since it was completed