Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
add Method_TextDocumentSemanticTokensFullDelta #4073
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
add Method_TextDocumentSemanticTokensFullDelta #4073
Changes from all commits
43796d0
3f29007
ff93475
decd9e1
e1fd84e
41499b4
9b373f3
4f7546a
8af3b99
181b10a
9e7af72
cef51ed
fa908a0
e3ed49b
82b1eaf
e7a17e7
cc69775
49fd150
dcdbb27
7e7398a
e6ff123
9ef7796
b287639
154013b
42f6284
699dab7
a0b6ac7
4180c43
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why drop this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For semantic tokens,
lastValueIO return
[]
(case with persistent key) orNothing
(case without persistent key).Between faking a stale value
[]
and mark the semantic tokens rules' value actuallyFailed
in shakestate
.The former would hide the failure in both user of the rule and in the shake caching result(I don't think it is wise, we want to know if we fail in this case).
Also we are not using IdeAction with
useWithStaleFastMT
(Which look directly into the caching and demand instance response) for semantic tokens as in other IdeAction that requires instance response(e.g. hover, this fix startup of hover when the rule first compute without any stale value in the cach).The persistent rule is rather useless for us and might shadow some actual failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, so does this mean we have to wait quite a while to get responses when we start up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, as we have been. Persistent rule won't help us here(Since it is not
ideAction
, the persistent rule serves only as a fall back when the actual computation of the rule failed and not already having a cache) .