-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Reenable LSP pull diagnostics #48328
Merged
CyrusNajmabadi
merged 41 commits into
dotnet:master
from
CyrusNajmabadi:lspDiagnostics2
Oct 20, 2020
Merged
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
1cadaee
Revert "Revert "Merge pull request #47914 from CyrusNajmabadi/lspDiag…
CyrusNajmabadi a7c6236
Merge remote-tracking branch 'upstream/master' into lspDiagnostics2
CyrusNajmabadi af83f65
Merge remote-tracking branch 'upstream/master' into lspDiagnostics2
CyrusNajmabadi 55cb2e1
Remove unnecessary fields/methods for lsp push diagnostics
CyrusNajmabadi 88bfa0d
Remove unnecessary fields/methods for lsp push diagnostics
CyrusNajmabadi b35167c
Add experimental flag
CyrusNajmabadi 54502f5
Remove
CyrusNajmabadi 0b0cbf0
Add option to switch between push/pull diagnostics.
CyrusNajmabadi e4e5f89
Reanme
CyrusNajmabadi 650e11a
add ocmments
CyrusNajmabadi b25608c
Add tests
CyrusNajmabadi 8ea42bd
UI option
CyrusNajmabadi fef7c2a
Remove test accessor
CyrusNajmabadi 07d1dca
Cleanup usings
CyrusNajmabadi 1b1ca2c
Merge remote-tracking branch 'upstream/master' into lspDiagnostics2
CyrusNajmabadi d9d7e82
Remove using
CyrusNajmabadi 5e334c1
Add language client for diagnostics
CyrusNajmabadi 49542f0
Merge remote-tracking branch 'upstream/master' into lspDiagnostics2
CyrusNajmabadi 90bef7c
Make non-optional
CyrusNajmabadi 4737fcd
Add comments
CyrusNajmabadi c1fdd37
Revert
CyrusNajmabadi fbe9c65
Add an abstraction for either reporting an array or results, or strea…
CyrusNajmabadi 7cba654
Make threadsafe
CyrusNajmabadi 67111a1
Remove #nullable enable
CyrusNajmabadi f422ad5
Docs
CyrusNajmabadi 162fd21
Merge branch 'bufferedProgress' into lspDiagnostics2
CyrusNajmabadi 455a733
Tweak the progress type to better support arrays and scalars.
CyrusNajmabadi c00d729
Merge branch 'bufferedProgress' into lspDiagnostics2
CyrusNajmabadi b084ea7
Merge branch 'extractMore' into lspDiagnostics2
CyrusNajmabadi 21d4761
Merge remote-tracking branch 'upstream/master' into lspDiagnostics2
CyrusNajmabadi a0ed107
Remove
CyrusNajmabadi 0a78828
Update
CyrusNajmabadi 9a82574
Simplify
CyrusNajmabadi 573e342
Fixup tests
CyrusNajmabadi 2338c37
Merge remote-tracking branch 'upstream/master' into lspDiagnostics2
CyrusNajmabadi 06b8ea0
Update src/Features/Core/Portable/Diagnostics/DiagnosticsUpdatedArgs.cs
CyrusNajmabadi 07bbaae
Fix test
CyrusNajmabadi 130c913
Merge branch 'lspDiagnostics2' of https://github.com/CyrusNajmabadi/r…
CyrusNajmabadi 3c7fdb6
Fix test
CyrusNajmabadi c90b3ac
Fix test
CyrusNajmabadi 5e0ee01
only enable diagnostics based on option
CyrusNajmabadi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
an intermediary concept this PR introduces is that the two major clients of the diagnostics subsystem now pass in what behavior they want when calling into the DiagnosticService singleton.
i.e. the normal push features call in saying
forPullDiagnostics: false
and the lsp system calls in sayingforPullDiagnostics: true
. Internally we see which mode we're actually in and we either pass along the diagnostics, or pass along empty. in essence only one side will work, and the other will see absolutely no diagnostics ever.This is not pretty, but it was:
Once we are entirely on pull, all the push components can go away (as can tehse booleans).