-
Notifications
You must be signed in to change notification settings - Fork 227
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
Address breaking changes in Omnisharp lib and depend on DocumentUri more #1300
Address breaking changes in Omnisharp lib and depend on DocumentUri more #1300
Conversation
@@ -147,7 +146,7 @@ internal static string GetUniqueIdFromDiagnostic(Diagnostic diagnostic) | |||
EnsureEngineSettingsCurrent(); | |||
|
|||
// Create a cancellation token source that will cancel if we do or if the caller does |
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.
The comment here is no longer true with the CreateLinked
method removed
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.
removed the comment. This is no longer needed because it's not really possible to cancel a didChange
notification.
var capabilities = typeof(ICapability).Assembly.GetExportedTypes() | ||
.Where(z => typeof(ICapability).IsAssignableFrom(z)) | ||
.Where(z => z.IsClass && !z.IsAbstract); | ||
foreach (var item in capabilities) |
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.
What are the var
s here? Possible to change them to explicit types?
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.
updated. Also added a comment that this code is temporary.
Issues
======
+ Solved 2
- Added 1
Complexity increasing per file
==============================
- test/PowerShellEditorServices.Test.E2E/Processes/StdioServerProcess.cs 4
- test/PowerShellEditorServices.Test.E2E/LSPTestsFixures.cs 2
- test/PowerShellEditorServices.Test.E2E/Processes/ServerProcess.cs 2
Clones removed
==============
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/FormattingHandlers.cs -3
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/DocumentSymbolHandler.cs -2
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/CodeLensHandlers.cs -2
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/HoverHandler.cs -1
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/FoldingRangeHandler.cs -2
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/DefinitionHandler.cs -2
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/SignatureHelpHandler.cs -1
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/CompletionHandler.cs -1
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/ReferencesHandler.cs -1
+ src/PowerShellEditorServices/Services/Workspace/Handlers/WorkspaceSymbolsHandler.cs -1
+ src/PowerShellEditorServices/Services/TextDocument/Handlers/DocumentHighlightHandler.cs -1
See the complete overview on Codacy |
Two main parts
Address breaking changes
Depend on DocumentUri more
DocumentUri
type instead of a string