Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make LanguageFeatureRequestDelays easier to use and adopt in more places #140557

Closed
10 tasks done
jrieken opened this issue Jan 12, 2022 · 6 comments
Closed
10 tasks done

Make LanguageFeatureRequestDelays easier to use and adopt in more places #140557

jrieken opened this issue Jan 12, 2022 · 6 comments
Assignees
Labels
engineering VS Code - Build / issue tracking / etc.
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Jan 12, 2022

We have adaptive debouncing logic implemented in LanguageFeatureRequestDelays. We should make this so that it can be used in more places easier. Identified the following pieces

  • a better sliding window average instead of "forever move average"
  • in all providers, to save on bandwidth, if a request is canceled, throw canceled instead of returning results
  • adopt ILanguageFeatureDebounceService#for in more providers e.g.
@jrieken jrieken self-assigned this Jan 12, 2022
@jrieken jrieken added this to the January 2022 milestone Jan 12, 2022
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 12, 2022
…s well, microsoft/vscode#140557

Commit: 7855392ed42218367435398c2c4e5d1c983ad771
jrieken added a commit that referenced this issue Jan 12, 2022
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 12, 2022
…r`, never log cancellation errors, microsoft/vscode#140557

Commit: e5703c84055ecc014bc5d3ccd342e5bed475fff0
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 12, 2022
@jrieken jrieken added engineering VS Code - Build / issue tracking / etc. feature-request Request for new features or functionality labels Jan 12, 2022
jrieken added a commit that referenced this issue Jan 13, 2022
…vice`, have better defaults, and adopt for code lens and inlay hints, #140557
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 13, 2022
…ounceService`, have better defaults, and adopt for code lens and inlay hints, microsoft/vscode#140557

Commit: 0cfa366323337aec7c18969b56a7a505a1904bd2
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 14, 2022
Commit: 2e7075d5c503613069476e64b69f89f9d71ba213
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 17, 2022
@jrieken
Copy link
Member Author

jrieken commented Jan 18, 2022

@alexdima @aeschli Please adopt the ILanguageFeatureDebounceService in your "ambient editor" features, like folding ranges and semantic tokens. The service allows you get debounce information (some dynamic average) for a feature registry, see inlay hints here

jrieken added a commit that referenced this issue Jan 18, 2022
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 18, 2022
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 18, 2022
…ation so save bandwidth, microsoft/vscode#140557

Commit: 57eaad7de3aea816f8ba2c47115f036159b06bb3
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 18, 2022
…ument symbols against cancellation, microsoft/vscode#140557

Commit: 56a830bc6825a30c03448cbb2bf616abb252a200
sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 18, 2022
@jrieken
Copy link
Member Author

jrieken commented Jan 21, 2022

@aeschli created PR #141162 which adopts this for folding

sourcegraph-bot pushed a commit to sgtest/megarepo that referenced this issue Jan 24, 2022
alexdima added a commit that referenced this issue Jan 24, 2022
alexdima added a commit that referenced this issue Jan 24, 2022
@jrieken jrieken modified the milestones: January 2022, February 2022 Jan 26, 2022
@jrieken
Copy link
Member Author

jrieken commented Jan 26, 2022

Moving this to February for more cancellation token adoption

@jrieken
Copy link
Member Author

jrieken commented Feb 4, 2022

fyi @aeschli readded you for more ambient editor features: colors, linked editing

@hediet
Copy link
Member

hediet commented Feb 8, 2022

I think some documentation of that service wouldn't hurt.
Why does adoption make sense? (After I talked to you I now know why)

@jrieken
Copy link
Member Author

jrieken commented Feb 10, 2022

Thanks everyone!

@jrieken jrieken removed the feature-request Request for new features or functionality label Feb 21, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
engineering VS Code - Build / issue tracking / etc.
Projects
None yet
Development

No branches or pull requests

6 participants
@jrieken @weinand @hediet @alexdima @aeschli and others