-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Inlay hints should be requested on all open files (similarly to diagnostics) #130430
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
Comments
@jrieken To support this on the TypeScript side, I believe we either need:
|
I should mention that semantic diagnostics probably has the same issue. |
Yeah, I believe that's the most reasonable thing to do. Unsure about requesting inlay hint for all files tho |
There already is |
@jrieken Can this event take an optional resource uri? Otherwise I have to add extra code to avoid calculating the hints twice If I have file A and file B open for example:
|
Reopening to track fix for JS/TS specifically |
Yeah, adding an optional uri event type should be easy. |
Re-opening this because for semantic tokens we have discusses second thought on allowing extensions to tell out one or more uris. Allowing to send uris add extra burden to extensions and/or language servers with little win. The implementation in the typescript extension is almost the same as sending the global event, except for omitting the current file. For that we have come up with the following ideas:
|
fixed with 5dcc080 |
Verify that there is the option for |
Uh oh!
There was an error while loading. Please reload this page.
Issue Type: Bug
Today, VS Code seems to request inlay hints for the most-recently edited (or currently focused?) file; however, inlay hints can be affected by edits in other files. That means you can end up in situations where 2 files can be edited side-by-side where one ends up with stale inlay hints.
VS Code version: Code - Insiders 1.60.0-insider (49af1cb, 2021-08-06T06:41:50.275Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
The text was updated successfully, but these errors were encountered: