Is it safe to call httpclient from CodeRefactoringProvider? #79944
Answered
by
CyrusNajmabadi
DmitryLukyanov
asked this question in
General
-
Given that
Any help would appreciated ? |
Beta Was this translation helpful? Give feedback.
Answered by
CyrusNajmabadi
Aug 18, 2025
Replies: 1 comment 12 replies
-
No. This is not ok. This now will place all refactorings behind an unbounded network IO call. Don't do this. Alternative: Have some BG, non-blocking, system that makes these calls, and populates some local cache. Then have your refactoring just lookup if the data it needs is in that cache and use it if so. |
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
CyrusNajmabadi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No. This is not ok. This now will place all refactorings behind an unbounded network IO call. Don't do this.
Alternative:
Have some BG, non-blocking, system that makes these calls, and populates some local cache. Then have your refactoring just lookup if the data it needs is in that cache and use it if so.