Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Multiple hover and definition requests sent for the same position and blocked on the last result #1321

@felixfbecker

Description

@felixfbecker

Go to any pinned position, e.g. https://sourcegraph.com/github.com/angular/angular/-/blob/packages/http/src/http.ts#L116:3

This should only sent a single hover and a single definition request to the extension. However, it sends multiple. lang-typescript just forwards these to the server without deduplication, and sometimes the server is busy and takes long to answer the second request. The UI does not show the hover the second hover and definition requests have returned:

image

Note how in this scenario, the first request came in at 18:18:58, and the hover could have been shown at 18:19:08, instead it didn't appear until 18:19:43 (ideally the server would be super responsive always but this is simply not always the reality - we should not overload it from our side).

I suspect this is a bug in codeintellify that wasn't noticed before because we used to cache all requests. Extensions can't really do this anymore if they want to work in editors too, and they shouldn't have to add code for this.

cc @sqs @lguychard @ijsnow

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error, flaw or fault that produces an incorrect or unexpected result, or behavior.team/graphGraph Team (previously Code Intel/Language Tools/Language Platform)webapp

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions